help on treebagger scores

조회 수: 2 (최근 30일)
Ian
Ian 2013년 4월 2일
답변: steven 2017년 5월 8일
From the documentation for TreeBagger's predict method:
For classification, [Y,scores] = predict(B,X) returns
scores for all classes. scores is a matrix with
one row per observation and one column per class. For each observation
and each class, the score generated by each tree is the probability
of this observation originating from this class computed as the fraction
of observations of this class in a tree leaf. predict averages
these scores over all trees in the ensemble.
I cannot interpret "computed as the fraction of observations of this class in a tree leaf." The fraction of what observations? Can't be the rows of X because even with one observation I can get scores between 0 and 1 from a single tree. Also, every observation is in some tree leaf. Can anyone elaborate on what scores is?

답변 (1개)

steven
steven 2017년 5월 8일
hello, I met the same question too. Have you solved it? I just want to know the number of trees pointed to each class. Best Wished

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by