mbcmodel.modelproperties
Properties and methods for viewing and editing model properties
Description
Use these properties and object functions to create and edit model properties.
Creation
Syntax
Description
creates an ModelPropObj = ModelObj.Propertiesmbcmodel.modelproperties object for ModelObj.
properties( lists the
property names, types, and allowed values.ModelObj.Properties)
changes the ModelObj.Properties.PropertyName = NewValueModelObj property name PropertyName to
the new value.
Properties
Every model object mbcmodel.model
has an mbcmodel.modelproperties object. In the mbcmodel.modelproperties object,
each model type has specific properties.
These tables provide the properties available for each model type.
Gaussian Process Models
| Property | Description | Values |
|---|---|---|
| Kernel function | String containing one of these enumerated values:
|
| Explicit basis function | String containing one of these enumerated values:
|
| Threshold to switch to large data fitting algorithm | Integer greater than or equal to 1 |
| Active set size | Integer greater than or equal to 1 |
| Large scale active set method | String containing one of these enumerated values:
|
| Large data fit method | String containing one of these enumerated values:
|
| Large data predict method | String containing one of these enumerated values:
|
| Initialize hyperparameters | String containing one of these enumerated values:
|
| Box-Cox transform (power) | Numeric number between -3 and 3, inclusive |
Linear Models – Polynomial
| Property | Description | Values |
|---|---|---|
| Polynomial order |
|
| Maximum order of interaction terms | Integer greater than or equal to 0 |
| Transform inputs | Boolean |
| List of parameter names (read-only) | NA |
| Stepwise status | Cell containing one of these values:
|
| Box-Cox transform (power) | Numeric number between -3 and 3, inclusive |
Linear Models – Hybrid Spline
| Property | Description | Values |
|---|---|---|
| Spline and polynomial order vector |
|
| Spline variable | NA |
| Order of interaction between spline and polynomial | Integer greater than or equal to 0 and less than or equal to 3 |
| Position of knots | Real vector |
| List of parameter names (read-only) | NA |
| Stepwise status | Cell containing one of these values:
|
| Box-Cox transform (power) | Numeric number between -3 and 3, inclusive |
Linear Models – RBF
| Property | Description | Values |
|---|---|---|
| RBF kernel | String containing one of these enumerated values:
|
| Continuity for Wendland kernel | Integer greater than or equal to 0 and less than or equal to 6 |
| List of parameter names (read-only) | NA |
| Stepwise status | Cell containing one of these values:
|
| Box-Cox transform (power) | Numeric number between -3 and 3, inclusive |
Linear Models – Polynomial RBF
| Property | Description | Values |
|---|---|---|
| Polynomial order vector |
|
| Maximum order of interaction terms | Integer greater than or equal to 0 |
| RBF kernel | String containing one of these enumerated values:
|
| Continuity for Wendland kernel | Integer greater than or equal to 0 and less than or equal to 6 |
| List of parameter names (read-only) | NA |
| Stepwise status | Cell containing one of these values:
|
| Box-Cox transform (power) | Numeric number between -3 and 3, inclusive |
Linear Models – Hybrid Spline-RBF
| Property | Description | Values |
|---|---|---|
| Spline and polynomial order vector |
|
| Spline variable | NA |
| Order of interaction between spline and polynomial | Integer greater than or equal to 0 and less than or equal to 3 |
| Position of knots | Real vector |
| RBF kernel | String containing one of these enumerated values:
|
| Continuity for Wendland kernel | Integer greater than or equal to 0 and less than or equal to 6 |
| List of parameter names (read-only) | NA |
| Stepwise status | Cell containing one of these values:
|
| Box-Cox transform (power) | Numeric number between -3 and 3, inclusive |
Nonlinear Models – Free Knot Spline
| Property | Description | Values |
|---|---|---|
| Spline and polynomial order vector |
|
| Number of knots | Positive integer |
Nonlinear Models – Neural Network
| Property | Description | Values |
|---|---|---|
| Number of hidden layers | Integer value 1 or 2 |
| Number of Neurons in each hidden layer | Vector of positive integers |
This property is read-only.
Type of model objects to be returned to mbcmodel.project, specified as
a vector. model.Type returns the model type.
Note
Spaces and case in model Type are ignored.
The model type must be one in this table.
Type | Model Object |
|---|---|
| Polynomial | mbcmodel.linearmodel |
| Hybrid Spline | mbcmodel.linearmodel |
| RBF | mbcmodel.linearmodel |
| Hybrid RBF | mbcmodel.linearmodel |
| Polynomial-RBF | mbcmodel.linearmodel |
| Hybrid Spline-RBF | mbcmodel.linearmodel |
| Gaussian Process | mbcmodel.model |
| Free Knot Spline | mbcmodel.model |
| Transient | mbcmodel.model |
| User-Defined | mbcmodel.model |
| Neural Network | mbcmodel.model |
| Interpolating RBF | mbcmodel.model |
| Local Polynomial Spline | mbcmodel.localmodel |
| Local Polynomial with Datum | mbcmodel.localmodel |
| Local Polynomial | mbcmodel.localmodel |
| Local Hybrid Spline | mbcmodel.localmodel |
| Local Truncated Power Series | mbcmodel.localmodel |
| Local Free Knot Spline | mbcmodel.localmodel |
| Local Multiple Models | mbcmodel.localmodel |
| Local Growth | mbcmodel.localmodel |
| Local User-Defined | mbcmodel.localmodel |
| Local Transient | mbcmodel.localmodel |
| Local Average Fit | mbcmodel.localmodel |
You can get a list of types by using getAlternativeTypes. Use this
syntax.
Mlist = getAlternativeTypes(M)
In this syntax, M is an mbcmodel.model object.
Data Types: char | string
This property is read-only.
Number of inputs to model, specified as a real positive scalar.
Data Types: double | single
Examples
Obtain a mbcmodel.modelproperties object from a model.
>> ModelObj = mbcmodel.CreateModel('Polynomial', 4); >> ModelProp = ModelObj.Properties ModelProp = Polynomial Properties Type: 'Polynomial' NumInputs: 4 Order: [3 3 3 3] InteractionOrder: 3 TransformInputRange: 1 ParameterNames: {35×1 cell} StepwiseStatus: {35×1 cell} BoxCox: 1
Display the model object.
>> disp(ModelObj) 1 + 2*X1 + 17*X2 + 27*X3 + 33*X4 + 3*X1^2 + 8*X1*X2 + 12*X1*X3 + 15*X1*X4 + 18*X2^2 + 22*X2*X3 + 25*X2*X4 + 28*X3^2 + 31*X3*X4 + 34*X4^2 + 4*X1^3 + 5*X1^2*X2 + 6*X1^2*X3 + 7*X1^2*X4 + 9*X1*X2^2 + 10*X1*X2*X3 + 11*X1*X2*X4 + 13*X1*X3^2 + 14*X1*X3*X4 + 16*X1*X4^2 + 19*X2^3 + 20*X2^2*X3 + 21*X2^2*X4 + 23*X2*X3^2 + 24*X2*X3*X4 + 26*X2*X4^2 + 29*X3^3 + 30*X3^2*X4 + 32*X3*X4^2 + 35*X4^3 InputData: [0x4 double] OutputData: [0x1 double] Status: Not fitted Linked to Response: <not linked>
Obtain the model object properties.
>> ModelObj = mbcmodel.CreateModel('Polynomial', 4); >> ModelProp = properties(ModelObj) ModelProp = 13×1 cell array {'Type' } {'Status' } {'NumInputs' } {'InputData' } {'OutputData' } {'Properties' } {'FitAlgorithm' } {'Inputs' } {'Name' } {'Units' } {'Parameters' } {'Response' } {'IsBeingEdited'}
Create a model and list the model properties.
>> ModelObj = mbcmodel.CreateModel('RBF',2) ModelObj = A radial basis function network using a multiquadric kernel with 0 centers and a global width of 2. The regularization parameter, lambda, is 0.0001. InputData: [0x2 double] OutputData: [0x1 double] Status: Not fitted Linked to Response: <not linked> >> properties(ModelObj.Properties) RBF Properties Type: 'RBF' NumInputs: 2 Kernel: 'multiquadric' Continuity: 4 ParameterNames: {0×1 cell} StepwiseStatus: {0×1 cell} BoxCox: 1 Kernel: RBF kernel (enum: {'multiquadric','recmultiquadric','gaussian','thinplate',... 'logisticrbf','wendland','linearrbf','cubicrbf'}) Continuity: Continuity for Wendland kernel (0,2,4,6) (int: [0,6]) ParameterNames: List of parameter names (read-only) StepwiseStatus: Stepwise status {'Always','Never','Step'} (cell) BoxCox: Box-Cox transform (power) (numeric: [-3,3])
Return the properties as a cell array.
>> f=ModelObj.Properties.properties f = 5×1 cell array {'Kernel' } {'Continuity' } {'ParameterNames'} {'StepwiseStatus'} {'BoxCox' }
Version History
Introduced before R2006a
See Also
mbcmodel.project | mbcdoe.design | mbcmodel.data | mbcmodel.model
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)