フィルターのクリア

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

製品

Community Treasure Hunt

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

Start Hunting!

Translated by