... scikit dummy.

You need to properly benchmark your models and it can be easy to forget to do this step. That is why we wanted to demonstrate the dummy module of scikit-learn. It is an underappreciated part of the library that is very useful to start with.


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 getting the newsletter.