Classification regression tree structure
显示 更早的评论
Has anyone used
clasregtree
function to build a tree with numerical responses (Y)? If yes then any idea how the means (Y bar) at each leaf (terminal nodes) is calculated?
Thanks
回答(1 个)
the cyclist
2014-8-13
Have you tried reading the documentation?
doc classregtree
or looking at the code?
edit classregtree
4 个评论
Sincloe Brans
2014-8-13
the cyclist
2014-8-13
I don't know the function well. Are the means a standard output of the function? If so, then you should be able to trace the name of the output variable backward through the function, to see how it is calculated.
Sincloe Brans
2014-8-19
the cyclist
2014-8-20
编辑:the cyclist
2014-8-20
Where you first call classregtree, you should be able to set a breakpoint, and then step through the function line-by-line to see the values all variables during the calculation.
类别
在 帮助中心 和 File Exchange 中查找有关 Analysis of Variance and Covariance 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!