Skip to main content

Course

Supervised Learning with scikit-learn

Intermediate4 hr

Grow your machine learning skills with scikit-learn in Python. Use real-world datasets in this interactive course and learn how to make powerful predictions!

Python4 hr15 videos49 Exercises4,050 XP290K+Statement of accomplishment

Create Your Free Account

Continue with Google
or
By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.

Loved by learners at thousands of companies

Training a Team?

Try for Business

Course Description

Grow your machine learning skills with scikit-learn and discover how to use this popular Python library to train models using labeled data. In this course, you'll learn how to make powerful predictions, such as whether a customer is will churn from your business, whether an individual has diabetes, and even how to tell classify the genre of a song. Using real-world datasets, you'll find out how to build predictive models, tune their parameters, and determine how well they will perform with unseen data. The videos contain live transcripts you can reveal by clicking "Show transcript" at the bottom left of the videos. The course glossary can be found on the right in the resources section. To obtain CPE credits you need to complete the course and reach a score of 70% on the qualified assessment. You can navigate to the assessment by clicking on the CPE credits callout on the right.

Feels like what you want to learn?

Start Course for Free

What you'll learn

  • Assess model generalization using train-test splits, k-fold cross-validation, and hyperparameter tuning with GridSearchCV or RandomizedSearchCV
  • Differentiate key evaluation metrics for supervised models, including accuracy, precision, recall, F1, ROC-AUC, R-squared, MSE, and RMSE
  • Evaluate model complexity and its impact on overfitting or underfitting by adjusting parameters such as k in KNN and alpha in regularized regression.
  • Identify supervised learning problem types and select appropriate scikit-learn algorithms for classification and regression
  • Recognize essential preprocessing techniques—dummy encoding, imputation, scaling, and pipeline construction—required for scikit-learn workflows

Prerequisites

Curriculum

Course outline

1

Classification

In this chapter, you'll be introduced to classification problems and learn how to solve them using supervised learning techniques. You'll learn how to split data into training and test sets, fit a model, make predictions, and evaluate accuracy. You’ll discover the relationship between model complexity and performance, applying what you learn to a churn dataset, where you will classify the churn status of a telecom company's customers.
Start Chapter
2

Regression

In this chapter, you will be introduced to regression, and build models to predict sales values using a dataset on advertising expenditure. You will learn about the mechanics of linear regression and common performance metrics such as R-squared and root mean squared error. You will perform k-fold cross-validation, and apply regularization to regression models to reduce the risk of overfitting.
Start Chapter
3

Fine-Tuning Your Model

Having trained models, now you will learn how to evaluate them. In this chapter, you will be introduced to several metrics along with a visualization technique for analyzing classification model performance using scikit-learn. You will also learn how to optimize classification and regression models through the use of hyperparameter tuning.
Start Chapter

Supervised Learning with scikit-learn

Course
Complete

Earn Statement of Accomplishment

Enroll Now

Grow your data skills with DataCamp for Mobile

Make progress on the go with our mobile courses and daily 5-minute coding challenges.

Machine Learning with scikit-learn | DataCamp