How to interpret the result of bagging

r
bagging

#1

I am currently doing a problem using bagging and while doing it I have created the model using bagging but when I have looked into result of model I am not able to interpret it.

library(rpart)
data(iris)
iris.bagging <- bagging(Species~., data=iris, mfinal=10)

iris.bagging

$trees[[2]]
n= 150 

node), split, n, loss, yval, (yprob)
      * denotes terminal node
  1. root 150 94 virginica (0.34000000 0.28666667 0.37333333)
  2. Petal.Length< 2.6 51 0 setosa (1.00000000 0.00000000 0.00000000) *
  3. Petal.Length>=2.6 99 43 virginica (0.00000000 0.43434343 0.56565657)
  4. Petal.Length< 4.85 45 3 versicolor (0.00000000 0.93333333 0.06666667) *
  5. Petal.Length>=4.85 54 1 virginica (0.00000000 0.01851852 0.98148148) *

How to interpret this in terms of decision tree


#2

@harry- It says that the tree number is 2nd out of 10 trees.
the first line tells you that the root of the tree has 150 observation in which 94 is virginica and probabilities of each class.
the second line tells that according to sepal length there is classification from the root and there is 51 observation corresponding this node and all are setosa with a probability of 1

You can interpret the corresponding line in the similar method.

Hope this helps!
Regards,
hinduja