Scikit-learn is part of the SciPy Toolkits, which are packages that are affiliated with SciPy. More information on SciPy toolkits and a list of available ones can be found at https://www.scipy.org/scikits.html . The first release of Scikit-learn came in 2007, but the first publication presenting the package in 2011 was Machine Learning in Python, Pedregosa et al., JMLR 12, pp. 2825-2830, 2011. For a wealth of examples, documentation, and reading, see the Scikit-learn web page ( http://scikit-learn.org ). The package is well-maintained and the documentation is excellent and very extensive in coverage.
After this brief introduction, we do as we did in the previous chapters—we start a Jupyter Notebook and run the standard imports.
Now we also, of course, want to import Scikit-learn. The following code imports it and also prints out the version number of the installed Scikit-learn:
import sklearn sklearn.__version__
Next, I have created a function that removes the right...