Show that fit returns the object itself — which is what makes model.fit(X, y).p…

Machine Learning · from The estimator API

fitpredicttransformscoreget_paramstrailing underscore

Putting the kettle on…

Starting up…

Exercise 4

Show that fit returns the object itself — which is what makes model.fit(X, y).predict(X) work. Return model.fit(...) is model as a bool.

your answer
stuck? the lesson behind it
The estimator API
Four methods, two kinds of number, and one very informative underscore