From the course: Machine Learning with Scikit-Learn

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

scikit-learn pipelines

scikit-learn pipelines - scikit-learn Tutorial

From the course: Machine Learning with Scikit-Learn

Start my 1-month free trial

scikit-learn pipelines

- [Instructor] Machine learning is not always about applying a single machine learning algorithm. For a lot of machine learning applications, you'll need to apply various data processing steps, data transformations, and potentially multiple machine learning algorithms. This can lead to a lot of code. The question becomes, how do you keep your code organized and as bug free as possible? In this video, I'll share with you how you can use Pipelines in Scikit Learn to make your code cleaner and more resilient to bugs. To demonstrate the utility of Pipelines, this notebook shows how much less code you need to chain together PCA and logistic regression for image classification. Before getting to that though, you need to import the libraries that you're going to use. The dataset using this notebook is a modified version of the MNIST dataset that contains 2000 labeled images of each digit, zero and one. The images are 28…

Contents