0

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?

jgozal
  • 819
  • 2
  • 9
  • 15

1 Answers1

1

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

David Ernst
  • 2,799
  • 8
  • 14