Machine learning fundamentals
Understand supervised, unsupervised and reinforcement learning and how to frame ML problems.
Choose a learning formulation that matches available labels and intended decisions.
Interview questions
Choose a question to reveal its answer.
01EasyCoreHow does supervised learning differ from unsupervised learning?
Answer
How does supervised learning differ from unsupervised learning?
Supervised learning uses input-target examples; unsupervised learning seeks useful structure without target labels.
Train a classifier on labeled emails versus cluster unlabeled customer records.
02EasyCoreHow does regression differ from classification?
Answer
How does regression differ from classification?
Regression predicts numeric targets; classification predicts categorical outcomes, often using class probabilities.
Predict a continuous house price versus whether a house will sell.
03EasyCoreWhen is unsupervised learning appropriate?
Answer
When is unsupervised learning appropriate?
Use it when target labels are unavailable and the goal is to discover structure, representations or anomalies.
Explore groups of similar customer behavior without predefined labels.
04MediumCoreHow does semi-supervised learning use unlabeled data?
Answer
How does semi-supervised learning use unlabeled data?
It combines labeled and unlabeled observations using assumptions or training strategies that extract useful information from both.
Train with a small labeled corpus and carefully selected pseudo-labels.
05MediumHigh priorityHow is reinforcement learning different from supervised prediction?
Answer
How is reinforcement learning different from supervised prediction?
An agent interacts with an environment and optimizes expected cumulative reward, often with delayed feedback.
Learn a policy for choosing actions over a sequence of decisions.
06MediumHigh priorityWhat is the difference between a loss function and an evaluation metric?
Answer
What is the difference between a loss function and an evaluation metric?
Loss drives parameter fitting; evaluation metrics summarize desired performance and may be nondifferentiable or different from the optimized loss.
Train with cross-entropy and evaluate precision at a selected threshold.
07MediumHigh priorityHow do parametric and nonparametric models differ?
Answer
How do parametric and nonparametric models differ?
Parametric models use a fixed-dimensional parameterization for a chosen architecture; nonparametric approaches can increase effective complexity with data.
Compare linear regression with a nearest-neighbor estimator.
08MediumWhat does generalization mean in machine learning?
Answer
What does generalization mean in machine learning?
Generalization is performance on relevant unseen examples rather than merely fitting training data.
Assess a model on independent examples drawn from its intended deployment setting.
09EasyWhy should you train a simple baseline first?
Answer
Why should you train a simple baseline first?
A baseline provides a reference for incremental value and can expose data or metric problems early.
Compare a complex classifier against a majority-class rule and logistic regression.
from sklearn.dummy import DummyClassifier
X = [[1], [2], [3], [4]]
y = [0, 0, 0, 1]
model = DummyClassifier(strategy='most_frequent').fit(X,y)
print(model.predict([[5]]))Compare a trained model to a simple baseline on independent data.
10HardWhy is there no universally best ML algorithm?
Answer
Why is there no universally best ML algorithm?
Under broad assumptions averaged across possible tasks, no algorithm dominates all others; useful inductive biases depend on the target problem.
Compare candidate models empirically rather than assuming a neural network is best.
Priority and difficulty are editorial study recommendations.
Technical reference: Documentation / paper ↗
Try a few practice questions
Explore the questions before creating a free account.