RandomForestClassifiers sklearn apply(X)
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.
Apply returns indices of leafs. 
Could anyone explain which indices does it return? Related fucntion in Matlab?
Thanks