Hi there all, I'm taking a look on the code for decision trees and trying to understand how it actually decides the class and I'm having some trouble with the final step.
The heart of the algorithm seem to be on lines 3249 to 3260 of the sklearn/tree/_tree.pyx file. Lines 3249 to 3258 are fine, they are just the standard walking through the branchs on the decision trees. What I failed to understand is how the tree actually decides which class to assign to the sample being classified after it reaches a leaf node. Aren't the final classes assigned to each final branch stored anywhere? Thanks, Rafael Calsaverini
------------------------------------------------------------------------------
_______________________________________________ Scikit-learn-general mailing list Scikit-learn-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/scikit-learn-general