How to specify the exact number of leaf (terminal) nodes in Regression Tree

1 次查看(过去 30 天)
How do Ifit a regression tree to my data (10 variables X1 to X10), 100-observations, each obs has Y-repsonse value) with a set number of leafs (aka terminal nodes)?
I tried to use fitrtree (X,Y) but I could not find option to define # of leafs (e.g. 5 or 10).
Thank you.

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Econometrics Toolbox 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by