Home:ALL Converter>One-versus-one or one-versus-all?

One-versus-one or one-versus-all?

Ask Time:2017-02-06T04:16:24         Author:Gabriel Tavares

Json Formatter

I'm using the CARET package in R for multiclass classification. I have 3 classes and I use the method train for training purposes. Here is the code for it:

trained.model.rf <- train(x = dataset.train[,-c(ncol(dataset.train))], y = dataset.train[,ncol(dataset.train)],method='rf',
                        trControl=trainControl(method="cv",number=10), allowParallel=TRUE, tuneLength = 6)
model.rf <- trained.model.rf$finalModel
result.rf <- predict(model.rf, dataset.test, type="response")

For the dataset.train I have the three classes together. How can I tell if this is an one-versus-one or one-versus-all aproach?

Author:Gabriel Tavares,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/42056798/one-versus-one-or-one-versus-all
yy