predict
Class: classreg.learning.regr.CompactRegressionSVM, RegressionSVM
Namespace: classreg.learning.regr
Predict responses using support vector machine regression model
Description
uses the yfit
= predict(Mdl
,X
,PredictionForMissingValue=prediction
)prediction
value as the predicted response for
observations with missing values in the predictor data X
. By
default, predict
uses the median of the observed response
values in the training data. (since R2023b)
Input Arguments
Output Arguments
Examples
Tips
If
mdl
is a cross-validatedRegressionPartitionedSVM
model, usekfoldPredict
instead ofpredict
to predict new response values.
Alternative Functionality
Simulink Block
To integrate the prediction of an SVM regression model into Simulink®, you can use the RegressionSVM
Predict block in the Statistics and Machine Learning Toolbox™ library or a MATLAB® Function block with the predict
function. For
examples, see Predict Responses Using RegressionSVM Predict Block and Predict Class Labels Using MATLAB Function Block.
When deciding which approach to use, consider the following:
If you use the Statistics and Machine Learning Toolbox library block, you can use the Fixed-Point Tool (Fixed-Point Designer) to convert a floating-point model to fixed point.
Support for variable-size arrays must be enabled for a MATLAB Function block with the
predict
function.If you use a MATLAB Function block, you can use MATLAB functions for preprocessing or post-processing before or after predictions in the same MATLAB Function block.
Extended Capabilities
Version History
Introduced in R2015bSee Also
RegressionSVM
| CompactRegressionSVM
| fitrsvm
| kfoldPredict