Training and Predicting: fit, predict, predictproba

57 min
Block 8 — Training the model
Objective
treat the scikit-learn estimator API as a conceptual model rather than a set of function names; state exactly what fit computes and where it stores it; separate a decision, a decision score and a probability without hesitation; read the column order of predict_proba correctly every time; define a calibrated classifier and measure calibration before and after correction; compose estimators with Pipeline and understand how fit cascades; write a custom transformer that passes check_estimator; and state the train/serve contract that a serialized model carries with it.
Estimated duration
75 minutes
Prerequisites
chapters 008, 009, 026 and 028
Associated quizzes
029.1-quiz-unified-interface.md to 029.7-quiz-regression-intervals.md

Preview — the rest of the lesson is for enrolled readers.

Already enrolled with a code?

Your access is tied to your account, not to this link. Sign in with the same email you used in class: your course is waiting, no need to enter the code again.

Sign inNo account yet? Create one
This lesson is part of the “Training the Model” module

The first modules of the course are open to everyone. For the rest you have three options: buy this course once and for all, subscribe, or enter the code handed out in class.

Are you a student on this course?

The code is tied to your account: sign in or create an account and it will be applied automatically when you come back.

No account yet? Create one