# Supervised Learning with scikit-learn

4.5+

60 reviewsBeginner

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!

Start Course for Free4 Hours15 Videos49 Exercises47,294 Learners4050 XPData Scientist with Python TrackData Scientist Professional with Python TrackMachine Learning Fundamentals with Python TrackMachine Learning Scientist with Python Track

## Create Your Free Account

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

## 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.

- 1
### Classification

**Free**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.

Machine learning with scikit-learn50 xpBinary classification50 xpThe supervised learning workflow100 xpThe classification challenge50 xpk-Nearest Neighbors: Fit100 xpk-Nearest Neighbors: Predict100 xpMeasuring model performance50 xpTrain/test split + computing accuracy100 xpOverfitting and underfitting100 xpVisualizing model complexity100 xp - 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.

Introduction to regression50 xpCreating features100 xpBuilding a linear regression model100 xpVisualizing a linear regression model100 xpThe basics of linear regression50 xpFit and predict for regression100 xpRegression performance100 xpCross-validation50 xpCross-validation for R-squared100 xpAnalyzing cross-validation metrics100 xpRegularized regression50 xpRegularized regression: Ridge100 xpLasso regression for feature importance100 xp - 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.

How good is your model?50 xpDeciding on a primary metric50 xpAssessing a diabetes prediction classifier100 xpLogistic regression and the ROC curve50 xpBuilding a logistic regression model100 xpThe ROC curve100 xpROC AUC100 xpHyperparameter tuning50 xpHyperparameter tuning with GridSearchCV100 xpHyperparameter tuning with RandomizedSearchCV100 xp - 4
### Preprocessing and Pipelines

Learn how to impute missing values, convert categorical data to numeric values, scale data, evaluate multiple supervised learning models simultaneously, and build pipelines to streamline your workflow!

Preprocessing data50 xpCreating dummy variables100 xpRegression with categorical features100 xpHandling missing data50 xpDropping missing data100 xpPipeline for song genre prediction: I100 xpPipeline for song genre prediction: II100 xpCentering and scaling50 xpCentering and scaling for regression100 xpCentering and scaling for classification100 xpEvaluating multiple models50 xpVisualizing regression model performance100 xpPredicting on the test set100 xpVisualizing classification model performance100 xpPipeline for predicting song popularity100 xpCongratulations50 xp

In the following tracks

Data Scientist with PythonData Scientist Professional with PythonMachine Learning Fundamentals with PythonMachine Learning Scientist with PythonCollaborators

Prerequisites

Introduction to Statistics in Python#### George Boorman

Curriculum Manager, DataCamp

George is a Curriculum Manager at DataCamp. He holds a PGDip in Exercise for Health and BSc (Hons) in Sports Science and has experience in project management across public health, applied research, and not-for-profit sectors. George is passionate about sports, tech for good, and all things data science.

## Don’t just take our word for it

*4.5from 60 reviews

70%

15%

12%

3%

0%

Sort by

- Segun A.1 day
Course was great and i really enjoyed the practices

- Ary R.3 days
Very good

- Nufail B.6 days
Good intro, i followed some data science and machine learning courses at my uni and needed a refresher, the datacamp course served well

- David T.24 days
scikit-learn is a great package and this course gets you up to speed quickly.

- levi n.about 1 month
offers cool cover to complete novices of machine learning

Loading ...

"Course was great and i really enjoyed the practices"

Segun A.

"Very good"

Ary R.

"Good intro, i followed some data science and machine learning courses at my uni and needed a refresher, the datacamp course served well"

Nufail B.

## Join over 11 million learners and start Supervised Learning with scikit-learn today!

## Create Your Free Account

or

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