回归树预测
使用回归树模型预测响应
- 图书馆:
Statistics and Machine Learning Toolbox / Regression
Description
这回归树预测block predicts responses using a regression tree object (RegressionTree
或者CompactregressionTree
)。
Import a trained regression object into the block by specifying the name of a workspace variable that contains the object. The input portXreceives an observation (predictor data), and the output port是的returns a predicted response for the observation.
Ports
Input
输出
参数
Model Examples
Block Characteristics
Data Types |
|
直接进料 |
|
Multidimensional Signals |
|
Variable-Size Signals |
|
零交叉检测 |
|
替代功能
You can use a MATLAB Function block with the预测
目的function of a regression tree object (RegressionTree
或者CompactregressionTree
)。例如,请参阅Predict Class Labels Using MATLAB Function Block。
When deciding whether to use the回归树预测统计信息和机器学习工具箱™库或MATLAB功能块中的块预测
function, consider the following:
If you use the Statistics and Machine Learning Toolbox library block, you can use the定点工具(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
预测
功能。如果使用MATLAB功能块,则可以在同一MATLAB功能块中使用MATLAB函数进行预处理或后处理。