Guide 14 · Data Science and Machine Learning

scikit-learn, Deep Dive

The library rather than the statistics: the estimator API, pipelines, and evaluation done honestly.

Planned 14 notebooks 0 written

Before this guide: Pandas, Deep Dive. For the statistics, see the Visual Handbook.

The notebooks

None of these notebooks is written yet. This is the plan, in reading order.

1The Estimator APIfit and predict, and why every model looks the samenot yet written
2Your First ModelTrain, predict, score, in six linesnot yet written
3Train and TestThe split, the seed, and what the test set is fornot yet written
4PreprocessingScaling and encoding, and fitting on train onlynot yet written
5PipelinesWhat the pipeline exists to prevent, demonstratednot yet written
6Cross-Validationcross_val_score, the fold, and variance across foldsnot yet written
7Regression MetricsAnd what each single number hidesnot yet written
8Classification MetricsPrecision, recall, and the threshold as a business decisionnot yet written
9Imbalanced ClassesAccuracy that lies, and what to report insteadnot yet written
10Hyperparameter SearchGrid, random, and why nested CV existsnot yet written
11Feature ImportancePermutation importance, and why the built-in one misleadsnot yet written
12Mixed Column TypesColumnTransformer, and one pipeline for a real tablenot yet written
13Saving a ModelPersisting, loading, and the version pin you will neednot yet written
14A Complete WorkflowRaw table to a model you could defend in a meetingnot yet written