theNotebook

Shelf two · The toolkit

scikit-learn

Intermediate · 1 min read · Three tellings

Kitchen table

A toolbox full of ready-made learning machines. You do not have to build the machine yourself. You pick one off the shelf, feed it your examples, and say 'fit'. It learns. Then you say 'predict' and it guesses on new things. Every machine in the box works the same way, so once you have learned to use one, you can use them all. It is like a chemistry set where all the experiments follow the same three steps.

Whiteboard

One consistent interface – fit, predict, transform – over most of classical ML, plus pipelines that keep preprocessing honest between training and serving, which is a quieter achievement than it sounds: half of all deployment bugs are a transform applied differently in production than in the notebook. The estimators are solid, the documentation is a model for the industry, and the design has been stable for a decade. For tabular business data, gradient-boosted trees from this box still embarrass deep learning regularly.

Boardroom

For a great many business problems – churn, credit risk, demand forecasting, fraud flags – this free library, not a large language model, is still the right and dramatically cheaper answer. The costs are pennies, the behaviour is stable and explainable, and the talent pool is deep. A useful board question when someone proposes an LLM for a prediction problem: did we try the boring thing first? Very often the boring thing wins on accuracy and costs a thousandth as much to run.

.fit()show examples.predict()new guessespipelinesame steps, alwayslearn it once, use every machine in the box
Every machine in the box works the same way: fit, predict, done.

Keywords

  • scikit-learn
  • sklearn
  • classical machine learning
  • pipelines
  • regression
  • classification

Search the notebook