Reputation: 472
Apply returns indices of leafs.
Could anyone explain which indices does it return? Related fucntion in Matlab?
Thanks
Upvotes: 0
Views: 34
Reputation: 95
Based on the lecture found here, these indices must represent the Decision Regions of membership for each x sample belonging to X.
Upvotes: 1
Reputation: 31
It gives you the indices of the leaf your data point is for every tree of your forest. This is what is then used to predict the class of your point.
Upvotes: 2