主要内容

mbcmodel.model

Properties and methods for model objects

    Description

    Use these properties and object functions to create and examine model objects.

    Creation

    Create a mbcmodel.model object using CreateModel.

    Properties

    expand all

    Data stored in model, returned as an array.

    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.

    TypeModel Object
    Polynomialmbcmodel.linearmodel
    Hybrid Splinembcmodel.linearmodel
    RBFmbcmodel.linearmodel
    Hybrid RBFmbcmodel.linearmodel
    Polynomial-RBFmbcmodel.linearmodel
    Hybrid Spline-RBFmbcmodel.linearmodel
    Gaussian Processmbcmodel.model
    Free Knot Splinembcmodel.model
    Transientmbcmodel.model
    User-Definedmbcmodel.model
    Neural Networkmbcmodel.model
    Interpolating RBFmbcmodel.model
    Local Polynomial Splinembcmodel.localmodel
    Local Polynomial with Datummbcmodel.localmodel
    Local Polynomialmbcmodel.localmodel
    Local Hybrid Splinembcmodel.localmodel
    Local Truncated Power Seriesmbcmodel.localmodel
    Local Free Knot Splinembcmodel.localmodel
    Local Multiple Modelsmbcmodel.localmodel
    Local Growth mbcmodel.localmodel
    Local User-Definedmbcmodel.localmodel
    Local Transientmbcmodel.localmodel
    Local Average Fitmbcmodel.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

    View and edit model properties, returned as a mbcmodel.modelproperties object.

    Each model type has specific properties.

    Gaussian Process Models

    PropertyDescriptionValues

    KernelFunction

    Kernel function

    String containing one of these enumerated values:

    • 'Exponential'

    • 'ARDExponential'

    • 'SquaredExponential'

    • 'ARDSquaredExponential'

    • 'Matern32'

    • 'ARDMatern32'

    • 'Matern52'

    • 'ARDMatern52'

    • 'RationalQuadratic'

    • 'ARDRationalQuadratic'

    BasisFunction

    Explicit basis function

    String containing one of these enumerated values:

    • 'None'

    • 'Constant'

    • 'Linear'

    • 'PureQuadratic'

    Threshold

    Threshold to switch to large data fitting algorithm

    Integer greater than or equal to 1

    ActiveSetSize

    Active set size

    Integer greater than or equal to 1

    ActiveSetMethod

    Large scale active set method

    String containing one of these enumerated values:

    • 'SGMA'

    • 'Entropy'

    • 'Likelihood'

    • 'Random'

    FitMethod

    Large data fit method

    String containing one of these enumerated values:

    • 'SD'

    • 'FIC'

    • 'SR'

    PredictMethod

    Large data predict method

    String containing one of these enumerated values:

    • 'Exact'

    • 'BCD'

    • 'SD'

    • 'FIC'

    • 'SR'

    InitializeMethod

    Initialize hyperparameters

    String containing one of these enumerated values:

    • 'LOO-loss'

    • 'logML'

    • 'none'

    BoxCox

    Box-Cox transform (power)

    Numeric number between -3 and 3, inclusive

    Nonlinear Models – Free Knot Spline

    PropertyDescriptionValues

    Order

    Spline and polynomial order vector

    n-by-1 vector of integers greater than or equal to 0 and less than or equal to 3, where n is the number of inputs

    NumKnots

    Number of knots

    Positive integer

    Nonlinear Models – Neural Network

    PropertyDescriptionValues

    HiddenLayers

    Number of hidden layers

    Integer value 1 or 2

    Neurons

    Number of Neurons in each hidden layer

    Vector of positive integers

    Model input, specified as an mbcmodel.modelinput object.

    This property is read-only.

    Status of model fit, specified as Not Fitted, Fitted, or Best.

    Data Types: char | string

    This property is read-only.

    Number of inputs to model, specified as a real positive scalar.

    Data Types: double | single

    This property is read-only.

    Input training data, specified as a matrix. InputData is specified when calling fit.

    Data Types: double

    This property is read-only.

    Output or response data, specified as a matrix. OutputData is specified when calling fit.

    Data Types: double

    Fit algorithm for model, specified as an mbcmodel.model.FitAlgorithm object.

    FitAlgorithm is a property of mbcmodel.model and of boundary model objects mbcboundary.AbstractBoundary and all subclasses.

    An mbcmodel.model.FitAlgorithm object is contained within the FitAlgorithm property of an mbcmodel.model object or mbcboundary object.

    As an alternative to using CreateAlgorithm, you can assign the algorithm name directly to the algorithm.

    B.FitAlgorithm.BoundaryPointOptions = 'Boundary Only';
    m.FitAlgorithm = 'Minimize PRESS';
    
    
    Case and spaces are ignored.

    To get a fitalgorithm object, F, from a model, use this code.

    M = mbcmodel.CreateModel('Polynomial', 4);
    F = M.FitAlgorithm
    F = 
    Algorithm: Least Squares
    Alternatives: 'Minimize PRESS','Forward Selection','Backward 
    Selection','Prune'
    1x1 struct array with no fields.

    Model object name, specified as a character vector.

    Data Types: char | string

    Model output unit, specified as a vector.

    Data Types: double | single

    This property is read-only.

    Response object in mbcmodel.project object, specified as an object.

    This property is read-only.

    Boolean indicating whether model is being edited, specified as either true (1) or false (0).

    Example: 0

    Data Types: logical

    This property is read-only.

    Boolean signaling if model is editable, specified as either true (1) or false (0). The following rules apply:

    • If the model was created using mbcmodel.CreateModel and is not Attached to a test plan, it is editable.

    • If the model was created or retrieved from the project and was not Attached to a test plan, it is editable.

    • If the data was Attached to a test plan and was subsequently retrieved from that test plan, it is editable.

    Data Types: logical

    Object Functions

    CreateModelCreate new model
    CreateDesignCreate design object for test plan or model
    EvaluateEvaluate model, boundary model, or design constraint
    ExportMake command-line or Simulink export model
    fitFit model or boundary model to new or existing data, and provide summary statistics
    InputSetupDialogOpen Input Setup dialog box to edit inputs
    JacobianCalculate Jacobian matrix for model at existing or new data points
    ModelSetupOpen Model Setup dialog box where you can alter model type
    pevPredicted error variance of model at specified inputs
    PredictedValuePredicted value of model at specified inputs
    StatisticsDialogOpen summary statistics dialog box
    SummaryStatisticsSummary statistics for response
    UpdateResponseReplace model in response
    getAlternativeTypesAlternative model or design types
    ValidationRMSECalculates the validation RMSE for model data

    Version History

    Introduced before R2006a