cut <- 0.95
prediction.classes.high <- prediction.classes[probs.max > cut]
sum(prediction.classes.high ==
    iris.testing$Species[probs.max > cut])/
    length(prediction.classes.high)
table(prediction.classes.high,
         iris.testing$Species[probs.max > cut])

prediction.classes.low <- prediction.classes[probs.max <= cut]
sum(prediction.classes.low == 
     iris.testing$Species[probs.max <= cut])/
     length(prediction.classes.low)
table(prediction.classes.low,
     iris.testing$Species[probs.max <= cut])

