Decision Tree Classification with 0 on BOTH terminal nodes of branches?

조회 수: 4 (최근 30일)
Justin
Justin 2014년 10월 2일
댓글: Justin 2014년 10월 6일
Using t=fitctree(x,y,'MinLeaf',20) and then view(t,'Mode','Graph') to look at how the tree is working, and I see that in several cases the result at a terminal branch is for BOTH end points to be '0', or BOTH to be '1'.
How can this be? I would expect each branch to end with one '0' and one '1', never two '0' or two '1'.
Thanks!

채택된 답변

Ilya
Ilya 2014년 10월 6일
Nothing wrong with that. A classification tree optimizes the Gini index and can split a parent node in two child nodes dominated by the same class.
  댓글 수: 1
Justin
Justin 2014년 10월 6일
OK so I'm thinking that the two leaf nodes can both be for say, 0 but be grouped as different levels of 'closeness' to 0 as compared to 1...Thanks00

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Classification Trees에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by