... scikit dummy: dummy classifier


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.