0
$\begingroup$

I would like to understand the randomforest tree plot in this answer.

The conditions and logic on each branch of the tree are very straightforward. But what does the content in the grey boxes at the end of the tree mean? Considering there are 3 species in the iris dataset, how do I know which of the species is actually being predicted according to the conditions in the branches?

$\endgroup$
1
$\begingroup$

Those are the three probabilities of belonging to each of the classes. They are estimated by the fraction of records with this class in the leaf.

It is strange that it says n=0 though

$\endgroup$
2
  • $\begingroup$ how do you know which probability belongs to each class? $\endgroup$ – jgozal Oct 17 '16 at 21:03
  • $\begingroup$ I also get n = 0 in my own models with a fairly different dataset $\endgroup$ – jgozal Oct 17 '16 at 21:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.