O'Reilly logo

R Data Analysis Cookbook - Second Edition by Kuntal Ganguly

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Specifying cutoffs for classification

Instead of using the default rule of simple majority for classification, we can specify cutoff probabilities as a vector of length equal to the number of classes. The proportion of the ratio of votes to the cutoff determines the winning class. We can specify this both at the time of tree construction and while using the model for predictions.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required