41 Key Machine Learning Interview Questions With Answers
41 Key Machine Learning Interview Questions With Answers
JAN 9, 2017
Machine learning interview questions are an integral part of the data science
interview and the path to becoming a data scientist, machine learning engineer or
data engineer. Springboard created a free guide to data science interviews so we
know exactly how they can trip candidates up! In order to help resolve that, here is a
curated and created a list of key questions that you could see in a machine learning
interview. There are some answers to go along with them so you don’t get stumped.
You’ll be able to do well in any job interview with machine learning interview
questions after reading through this piece.
https://www.springboard.com/blog/machine-learning-interview-questions/ 1/23
7/30/2017 41 Key Machine Learning Interview Questions with Answers
These algorithms questions will test your grasp of the theory behind
machine learning.
https://www.springboard.com/blog/machine-learning-interview-questions/ 2/23
7/30/2017 41 Key Machine Learning Interview Questions with Answers
https://www.springboard.com/blog/machine-learning-interview-questions/ 3/23
7/30/2017 41 Key Machine Learning Interview Questions with Answers
The critical difference here is that KNN needs labeled points and is thus
supervised learning, while k-means doesn’t — and is thus unsupervised
learning.
https://www.springboard.com/blog/machine-learning-interview-questions/ 4/23
7/30/2017 41 Key Machine Learning Interview Questions with Answers
Recall is also known as the true positive rate: the amount of positives
your model claims compared to the actual number of positives there are
throughout the data. Precision is also known as the positive predictive
value, and it is a measure of the amount of accurate positives your
model claims compared to the number of positives it actually claims. It
can be easier to think of recall and precision in the context of a case
where you’ve predicted that there were 10 apples and 5 oranges in a
case of 10 apples. You’d have perfect recall (there are actually 10
apples, and you predicted there would be 10) but 66.7% precision
https://www.springboard.com/blog/machine-learning-interview-questions/ 5/23
7/30/2017 41 Key Machine Learning Interview Questions with Answers
because out of the 15 events you predicted, only 10 (the apples) are
correct.
Q6- What is Bayes’ Theorem? How is it useful in a machine
learning context?
Bayes’ Theorem says no. It says that you have a (.6 * 0.05) (True
Positive Rate of a Condition Sample) / (.6*0.05)(True Positive Rate of a
Condition Sample) + (.5*0.95) (False Positive Rate of a Population) =
0.0594 or 5.94% chance of getting a flu.
https://www.springboard.com/blog/machine-learning-interview-questions/ 6/23
7/30/2017 41 Key Machine Learning Interview Questions with Answers
https://www.springboard.com/blog/machine-learning-interview-questions/ 7/23
7/30/2017 41 Key Machine Learning Interview Questions with Answers
https://www.springboard.com/blog/machine-learning-interview-questions/ 8/23
7/30/2017 41 Key Machine Learning Interview Questions with Answers
quickly and efficiently. Make sure you have a choice and make sure you
can explain different algorithms so simply and effectively that a five-
year-old could grasp the basics!
Don’t think that this is a trick question! Many machine learning interview
questions will be an attempt to lob basic questions at you just to make
sure you’re on top of your game and you’ve prepared all of your bases.
https://www.springboard.com/blog/machine-learning-interview-questions/ 9/23
7/30/2017 41 Key Machine Learning Interview Questions with Answers
Q13- What is deep learning, and how does it contrast with other
machine learning algorithms?
https://www.springboard.com/blog/machine-learning-interview-questions/ 10/23
7/30/2017 41 Key Machine Learning Interview Questions with Answers
https://www.springboard.com/blog/machine-learning-interview-questions/ 11/23
7/30/2017 41 Key Machine Learning Interview Questions with Answers
https://www.springboard.com/blog/machine-learning-interview-questions/ 12/23
7/30/2017 41 Key Machine Learning Interview Questions with Answers
What’s important here is that you have a keen sense for what damage
an unbalanced dataset can cause, and how to balance that.
https://www.springboard.com/blog/machine-learning-interview-questions/ 13/23
7/30/2017 41 Key Machine Learning Interview Questions with Answers
https://www.springboard.com/blog/machine-learning-interview-questions/ 14/23
7/30/2017 41 Key Machine Learning Interview Questions with Answers
You would first split the dataset into training and test sets, or perhaps
use cross-validation techniques to further segment the dataset into
composite sets of training and test sets within the data. You should then
implement a choice selection of performance metrics: here is a
fairly comprehensive list. You could use measures such as the F1
score, the accuracy, and the confusion matrix. What’s important here is
to demonstrate that you understand the nuances of how a model is
measured and how to choose the right performance measures for the
right situations.
The Kernel trick involves kernel functions that can enable in higher-
dimension spaces without explicitly calculating the coordinates of points
https://www.springboard.com/blog/machine-learning-interview-questions/ 15/23
7/30/2017 41 Key Machine Learning Interview Questions with Answers
In Pandas, there are two very useful methods: isnull() and dropna() that
will help you find columns of data with missing or corrupted data and
drop those values. If you want to fill the invalid values with a
placeholder value (for example, 0), you could use the fillna() method.
Q27- Do you have experience with Spark or big data tools for
machine learning?
https://www.springboard.com/blog/machine-learning-interview-questions/ 16/23
7/30/2017 41 Key Machine Learning Interview Questions with Answers
More reading: 50 Top Open Source Tools for Big Data (Datamation)
You’ll want to get familiar with the meaning of big data for different
companies and the different tools they’ll want. Spark is the big data tool
most in demand now, able to handle immense datasets with speed. Be
honest if you don’t have experience with the tools demanded, but also
take a look at job descriptions and see what tools pop up: you’ll want to
invest in familiarizing yourself with them.
https://www.springboard.com/blog/machine-learning-interview-questions/ 17/23
7/30/2017 41 Key Machine Learning Interview Questions with Answers
Q31- Which data visualization libraries do you use? What are your
thoughts on the best data visualization tools?
https://www.springboard.com/blog/machine-learning-interview-questions/ 18/23
7/30/2017 41 Key Machine Learning Interview Questions with Answers
The startup metrics Slideshare linked above will help you understand
exactly what performance indicators are important for startups and tech
companies as they think about revenue and growth.
https://www.springboard.com/blog/machine-learning-interview-questions/ 19/23
7/30/2017 41 Key Machine Learning Interview Questions with Answers
https://www.springboard.com/blog/machine-learning-interview-questions/ 20/23
7/30/2017 41 Key Machine Learning Interview Questions with Answers
Q35- What are the last machine learning papers you’ve read?
More reading: What are some of the best research papers/books for
machine learning?
Related to the last point, most organizations hiring for machine learning
positions will look for your formal experience in the field. Research
papers, co-authored or supervised by leaders in the field, can make the
difference between you being hired and not. Make sure you have a
summary of your research experience and papers ready — and an
explanation for your background and lack of formal research
experience if you don’t.
https://www.springboard.com/blog/machine-learning-interview-questions/ 21/23
7/30/2017 41 Key Machine Learning Interview Questions with Answers
More reading: What are the typical use cases for different machine
learning algorithms? (Quora)
More reading: 19 Free Public Data Sets For Your First Data Science
Project (Springboard)
Machine learning interview questions like these try to get at the heart of
your machine learning interest. Somebody who is truly passionate
about machine learning will have gone off and done side projects on
their own, and have a good idea of what great datasets are out there. If
you’re missing any, check out Quandl for economic and financial data,
and Kaggle’s Datasets collection for another great list.
https://www.springboard.com/blog/machine-learning-interview-questions/ 22/23
7/30/2017 41 Key Machine Learning Interview Questions with Answers
Machine learning interview questions like this one really test your
knowledge of different machine learning methods, and your
inventiveness if you don’t know the answer. Google is currently
using recaptcha to source labelled data on storefronts and traffic signs.
They are also building on training data collected by Sebastian Thrun at
GoogleX — some of which was obtained by his grad students driving
buggies on desert dunes!
Q41- How would you simulate the approach AlphaGo took to beat
Lee Sidol at Go?
AlphaGo beating Lee Sidol, the best human player at Go, in a best-of-
five series was a truly seminal event in the history of machine learning
and deep learning. The Nature paper above describes how this was
accomplished with “Monte-Carlo tree search with deep neural networks
that have been trained by supervised learning, from human expert
games, and by reinforcement learning from games of self-play.”
https://www.springboard.com/blog/machine-learning-interview-questions/ 23/23