필터 지우기
필터 지우기

Classification regression tree structure

조회 수: 1 (최근 30일)
Sincloe Brans
Sincloe Brans 2014년 8월 13일
편집: the cyclist 2014년 8월 20일
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
the cyclist 2014년 8월 13일
Have you tried reading the documentation?
doc classregtree
or looking at the code?
edit classregtree
  댓글 수: 4
Sincloe Brans
Sincloe Brans 2014년 8월 19일
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 2014년 8월 20일
편집: the cyclist 2014년 8월 20일
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.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Gaussian Process Regression에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by