Classification regression tree structure

2 visualizaciones (últimos 30 días)
Sincloe Brans
Sincloe Brans el 13 de Ag. de 2014
Editada: the cyclist el 20 de Ag. de 2014
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

Respuestas (1)

the cyclist
the cyclist el 13 de Ag. de 2014
Have you tried reading the documentation?
doc classregtree
or looking at the code?
edit classregtree
  4 comentarios
Sincloe Brans
Sincloe Brans el 19 de Ag. de 2014
Attached is the function, actually classregtree is a class which I have no idea how to edit or get the intermediate results. If you look at line 746, ybar is calculated. Any idea on how to obtain that?
the cyclist
the cyclist el 20 de Ag. de 2014
Editada: the cyclist el 20 de Ag. de 2014
I suggest you take a look at this page about debugging MATLAB.
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.

Iniciar sesión para comentar.

Community Treasure Hunt

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

Start Hunting!

Translated by