Reputation: 509
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
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