You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
predictive_model is an object that specifies a multivariate predictive model and its artifacts: the outcome Y, predictions yfit,
weight maps w, bootstrap statistics, cross-validation indices and
errors, the underlying MATLAB classification/regression model object,
and effect-size summaries. It is intended as an output type for
xval_SVM, xval_SVR, and similar wrappers; the constructor accepts a
plain struct (such as the output of those wrappers) and copies matching
fields, with legacy translations for SVMModel/SVRModel and the
classification/regression _d_singleinterval and _d_within fields.
Many methods on the class are placeholders ("forthcoming") that error if
called; see the table below for which ones are implemented today. Type
methods(my_obj) in MATLAB for the live list on any instance.
Properties
Some properties' values are defined before model fitting. These specify input data, objective function, hyperparameters, and cross-validation scheme. Other properties' values are defined after model estimation, including cross-validation predictions, accuracy, etc.
Property
Description
Y
Observed outcomes (vector); ±1 for SVM
id
Grouping/subject vector for within-participant observations
class_labels
Cell of class names, e.g. {'No pain' 'Pain'}
Y_name
Name of outcome variable
X_name
Name of predictor variable
modeloptions
Cell of fitter options, e.g. {'KernelFunction','linear'}
accfun
Objective function; function handle computing accuracy from (Y, yfit)