scikit dummy logo scikit dummy: dummy classifier

1 2 3 4
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)