[英]One node decision tree in matlab
Im using matlab 2014a and I cant find how to do 1 node decision tree (and 2 nodes, 3 nodes ext.) Itried to use:我使用的是 matlab 2014a,但我找不到如何做 1 个节点决策树(和 2 个节点,3 个节点扩展)。尝试使用:
"MaxNumSplits",and "MaxDepth"
“MaxNumSplits”和“MaxDepth”
but I got但我得到了
MaxNumSplits is not a valid parameter name.
MaxNumSplits 不是有效的参数名称。
thanks ahead提前致谢
Your version of Matlab is too old for manipulating the MaxNumSplits
parameter.您的 Matlab 版本太旧,无法操作
MaxNumSplits
参数。
Matlab's way of implementing algorithms changes along time. Matlab 实现算法的方式随时间而变化。 This is the case here for
fitctree
(fit classification tree) when the R2015a version was released.在 R2015a 版本发布时,
fitctree
(拟合分类树)就是这种情况。 See the following 'new features' page introducing 2 new parameters for the fitctree
function请参阅 以下“新功能”页面,介绍
fitctree
函数的 2 个新参数
Additional option to control decision tree depth using 'MaxNumSplits' argument in fitctree, fitrtree, and templateTree functions
在 fitctree、fitrtree 和 templateTree 函数中使用“MaxNumSplits”参数控制决策树深度的附加选项
You can search such evolution by comparing the different versions of the docs here: https://de.mathworks.com/help/doc-archives.html您可以通过在此处比较不同版本的文档来搜索此类演变: https : //de.mathworks.com/help/doc-archives.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.