RegressionKernel Predict
Libraries:
Statistics and Machine Learning Toolbox /
Regression
Description
The RegressionKernel Predict block predicts responses using a kernel
regression object (RegressionKernel
).
Import a trained kernel regression object into the block by specifying the name of a workspace variable that contains the object. The input port x receives an observation (predictor data), and the output port yfit returns a predicted response for the observation.
Examples
Ports
Input
Output
Parameters
Block Characteristics
Data Types |
|
Direct Feedthrough |
|
Multidimensional Signals |
|
Variable-Size Signals |
|
Zero-Crossing Detection |
|
Tips
To predict responses using a trained
RegressionPartitionedKernel
modelMdl
with cross-validated folds, access the internalRegressionKernel
model usingMdl.Trained{i}
, wherei
is the index of the desired internal model.
Alternative Functionality
You can use a MATLAB Function (Simulink) block with the predict
object
function of a kernel regression object (RegressionKernel
).
For an example of using a MATLAB Function block, see Predict Class Labels Using MATLAB Function Block.
When deciding whether to use the RegressionKernel Predict block in the
Statistics and Machine Learning Toolbox™ library or a MATLAB Function block with the predict
function, 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 R2024b
See Also
Blocks
- RegressionSVM Predict | RegressionTree Predict | RegressionEnsemble Predict | RegressionNeuralNetwork Predict | RegressionGP Predict | ClassificationKernel Predict
Objects
Functions
Topics
- Predict Responses Using RegressionSVM Predict Block
- Predict Responses Using RegressionTree Predict Block
- Predict Responses Using RegressionEnsemble Predict Block
- Predict Responses Using RegressionNeuralNetwork Predict Block
- Predict Responses Using RegressionGP Predict Block
- Predict Class Labels Using MATLAB Function Block