课程: Machine Learning with Scikit-Learn

今天就学习课程吧!

今天就开通帐号,24,600 门业界名师课程任您挑!

scikit-learn pipelines

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…

内容