scikit-learn Tutorials

Note on IPython

Some of the tutorials have code blocks start with »> and are intended to be executed in IPython using doctest_mode. IPPython has not been updated since 2020 (it is replaced by Jupyter notbooks). But you can simply execute the code in the Python interactive console by copying the code in a way that omits the »> at the beginning of the line.


These tutorials are updated from “scikit-learn Tutorials” by scikit-learn developers. Original Source: https://scikit-learn.org/1.4/tutorial/index.html under the BSD License.


The code examples and text in this tutorial were updated for scikit-learn version 1.7 by Brian Bird using Claude Sonnet 4, 10/19/2025