This recipe is about creating fake estimators; this isn't the pretty or exciting stuff, but it is worthwhile having a reference point for the model you'll eventually build.
Using dummy estimators to compare results
Getting ready
In this recipe, we'll perform the following tasks:
- Create some random data.
- Fit the various dummy estimators.
We'll perform these two steps for regression data and classification data.
How to do it...
- First, we'll create the random data:
from sklearn.datasets import make_regression, make_classification
X, y = make_regression...