logo

... scikit dummy: dummy classifier



Notes

A dummy classifier works just like any other scikit-learn estimator.

from sklearn.dummy import DummyClassifier
mod = DummyClassifier(strategy="most_frequent")
mod.fit(X, y)

Feedback? See an issue? Something unclear? Feel free to mention it here.



If you want to be kept up to date, consider signing up for the newsletter.