Concept

sklearn.dummy.DummyClassifier

Scikit-learn allows for dummy classifiers to be created for the purpose of comparing to a statistically generated model

dummy = DummyClassifier(strategy="most_frequent")

This code creates a dummy classifier which predicts every value to hold the same value as the most frequent value in the training set.

0

1

Updated 2020-10-19

Tags

Data Science