mowglis_diaper
mowglis_diaper

Reputation: 509

R-Caret equivalent of Scikit-Learn's DummyClassifier?

What R-Caret method can be used to generate random classification guesses and determine whether they're classified correctly? I've used DummyClassifier as a model comparison in the past, but I'd like to stick to Caret here.

Upvotes: 3

Views: 350

Answers (1)

zfisher
zfisher

Reputation: 61

You can use the sample() function to do that which is nice because it allows you to control what the distribution of "classifications" should look like.

Upvotes: 1

Related Questions