The scikit-learn library is used to build machine learning pipelines. When we define the functions, the library will build a composed object that makes the data go through the entire pipeline. This pipeline can include functions, such as preprocessing, feature selection, supervised learning, and unsupervised learning.
Building machine learning pipelines
Getting ready
In this recipe, we will be building a pipeline to take the input feature vector, select the top k features, and then classify them using a random forest classifier.
How to do it...
Let's take a look at...