Skip to main content

Practicing Machine Learning Interview Questions in Python

Sharpen your knowledge in machine learning, and prepare for any potential question you might get in a machine learning interview in Python.

Start Course for Free
4 Hours16 Videos60 Exercises5,914 Learners4600 XP

Create Your Free Account



By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA. You confirm you are at least 16 years old (13 if you are an authorized Classrooms user).

Loved by learners at thousands of companies

Course Description

Have you ever wondered how to properly prepare for a Machine Learning Interview? Of course you have or you likely wouldn't be reading this right now! In this course, students will prepare to answer 15 common Machine Learning (ML) interview questions for a data scientist role in Python. These questions will revolve around 7 important topics: data preprocessing, data visualization, supervised learning, unsupervised learning, model ensembling, model selection, and model evaluation. By the end of the course, the students will possess both the required theoretical background and the ability to develop Python code to successfully answer these 15 questions. The coding examples will be mainly based on the scikit-learn package given its ease-of-use and ability to cover the most important ML techniques in the Python language.

The course does not teach machine learning fundamentals as these are covered in the course's prerequisites.

  1. 1

    Data Pre-processing and Visualization


    In the first chapter of this course, you'll perform all the preprocessing steps required to create a predictive machine learning model, including what to do with missing values, outliers, and how to normalize your dataset.

    Play Chapter Now
    Handling missing data
    50 xp
    The hunt for missing values
    100 xp
    Simple imputation
    100 xp
    Iterative imputation
    100 xp
    Data distributions and transformations
    50 xp
    Training vs test set distributions and transformations
    50 xp
    Train/test distributions
    100 xp
    Log and power transformations
    100 xp
    Data outliers and scaling
    50 xp
    Outlier detection
    100 xp
    Handling outliers
    100 xp
    Z-score standardization
    100 xp
  2. 2

    Supervised Learning

    In the second chapter of this course, you'll practice different several aspects of supervised machine learning techniques, such as selecting the optimal feature subset, regularization to avoid model overfitting, feature engineering, and ensemble models to address the so-called bias-variance trade-off.

    Play Chapter Now


DiabetesLoans datasetLoans training set (reduced)


AAN94Adel Nehme
Lisa Stuart Headshot

Lisa Stuart

Data Scientist

Lisa Stuart is a Data Scientist with a wealth of industry experience. She is currently on the LSLPG Data Science Team at Thermo Fisher Scientific where she and her team build solutions to support the company motto to 'make the world healthier, cleaner and safer.' Prior to that, she built predictive models for targeted marketing at Costco and Expedia and managed dashboards for process automation. At Starbucks, she managed a team of data scientists to build a predictive model on geopolitical stability of countries around the world to make informed decisions on expansion and supply routes. As part of the DSP Big Data Analytics Team at Amazon, she and her team used statistical analysis and machine learning to improve processes around successful and on-time delivery for each and every Amazon order. In her free time, you'll find her at the dog park hanging out with her beloved dogs Blaze, Stella and Kona.
See More

What do other learners have to say?

I've used other sites—Coursera, Udacity, things like that—but DataCamp's been the one that I've stuck with.

Devon Edwards Joseph
Lloyds Banking Group

DataCamp is the top resource I recommend for learning data science.

Louis Maiden
Harvard Business School

DataCamp is by far my favorite website to learn from.

Ronald Bowers
Decision Science Analytics, USAA