All questions
Showing of 36What is machine learning, and how does it differ from ordinary programming?
Answer it yourself first - out loud, or typed below.
How should your speech become text?
Listening… your words appear above as you speak - tap Stop when you're done.
Recording · cr - tap Stop & transcribe when you're done.
Transcribing with AI…
Voice:
Last attempt -
Machine learning derives rules from examples instead of having a person write them. In ordinary programming you supply the logic and the data, and the computer returns answers. In machine learning you supply the data and the answers, and the computer works out the logic. That logic is a model, a set of numbers fitted to patterns in past examples.
The difference earns its cost when the rules are too messy to write down. Nobody can enumerate every way a photo can show a cat. But you can collect labeled photos and let training find the pattern for you.
What you give up is certainty. A hand-written rule fails in ways you can read in the source code. A model fails in ways you have to measure. You also sign up for data collection, labeling, and retraining as the world shifts.
This answer doesn't lend itself to a diagram - it reads best . No credits were charged.
Why there's no diagram: “”
The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓
What is the difference between supervised and unsupervised learning?
Answer it yourself first - out loud, or typed below.
How should your speech become text?
Listening… your words appear above as you speak - tap Stop when you're done.
Recording · cr - tap Stop & transcribe when you're done.
Transcribing with AI…
Voice:
Last attempt -
Supervised learning learns from examples that carry a correct answer, called a label. You hand it past emails marked spam or not spam, and it learns the mapping. Unsupervised learning gets rows with no answers attached at all. It looks for structure in the data itself, like groups of similar customers.
The practical split is usually about what you already have. Labels cost money, because someone has to read every email and mark it. When nothing is labeled, unsupervised methods still tell you something useful about the shape of your data.
Checking the result differs too. A supervised model has a right answer to score against, so error is a number. Unsupervised output needs a person to look at the clusters and decide whether they mean anything.
This answer doesn't lend itself to a diagram - it reads best . No credits were charged.
Why there's no diagram: “”
The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓
What is each of the training, validation, and test sets used for?
Answer it yourself first - out loud, or typed below.
How should your speech become text?
Listening… your words appear above as you speak - tap Stop when you're done.
Recording · cr - tap Stop & transcribe when you're done.
Transcribing with AI…
Voice:
Last attempt -
The training set is what the model actually fits. Its rows adjust the parameters until error on those rows comes down. The validation set is where you make choices: which model, which settings, how long to train. You score candidates on it and keep the winner.
The test set gets used once, at the end. It estimates how the chosen model will do on data nobody tuned against. That is a different question from validation: not which option is best, but how good the winner really is.
A common split is 60 percent training, 20 validation, 20 test. Large datasets can spare far less for the last two. Skip the split and every number you report describes rows the model already memorized.
This answer doesn't lend itself to a diagram - it reads best . No credits were charged.
Why there's no diagram: “”
The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓
What are overfitting and underfitting, and what causes each?
Answer it yourself first - out loud, or typed below.
How should your speech become text?
Listening… your words appear above as you speak - tap Stop when you're done.
Recording · cr - tap Stop & transcribe when you're done.
Transcribing with AI…
Voice:
Last attempt -
Overfitting means the model learned the training rows too well, noise included. It reproduces quirks that will not repeat, so new data goes worse than old. Underfitting is the opposite failure. The model never captured the real pattern, so it does poorly everywhere, training rows included.
Overfitting comes from more flexibility than the data can support. Typical causes are too many parameters, too few rows, or too many passes over the same data. Features that quietly identify individual rows do it too.
Underfitting comes from the reverse. The model is too simple for the pattern, the features leave out what matters, or training stopped early.
Naming them separately matters because the fixes point in opposite directions. Adding capacity to an overfit model makes it worse, and simplifying an underfit one does the same.
This answer doesn't lend itself to a diagram - it reads best . No credits were charged.
Why there's no diagram: “”
The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓
What do the terms bias and variance mean in machine learning?
Answer it yourself first - out loud, or typed below.
How should your speech become text?
Listening… your words appear above as you speak - tap Stop when you're done.
Recording · cr - tap Stop & transcribe when you're done.
Transcribing with AI…
Voice:
Last attempt -
Bias is error that comes from a model's assumptions being too simple for reality. A straight line fitted to a curved relationship is biased. It misses the shape no matter how many rows you feed it.
Variance is how much the fitted model changes when you swap in a different training sample. A high-variance model chases the particular rows it saw. Two samples drawn from the same source give you two noticeably different models.
The dartboard picture is the fastest way in. Bias is aiming at the wrong spot, and variance is a shaky hand. You can be consistently wrong, randomly wrong, both, or neither.
Keeping the two words separate matters because they point at different repairs. Bad aim and a shaky hand are not fixed by the same change.
This answer doesn't lend itself to a diagram - it reads best . No credits were charged.
Why there's no diagram: “”
The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓
How do you handle missing, corrupted, or duplicated values in a dataset?
Which problems suit supervised learning, and how do classification and regression differ?
What are the stages of a machine learning project from problem to production?
What are outliers, and how do you decide what to do with them?
What is data leakage, and why does it ruin a model?
What is reinforcement learning, and how does it differ from supervised learning?
What is semi-supervised learning, and when would you reach for it?
What is the bias-variance tradeoff, and why can't you minimize both at once?
Why do we split data, and why must the test set stay sealed?
What can you do to stop a model from overfitting?
How would you walk an interviewer through a machine learning project you shipped?
When does machine learning beat a set of hand-written rules?
When is machine learning the wrong tool, and what do you use instead?
How do you decide which model to try first on a new problem?
How does a high-bias model behave differently from a high-variance one?
How do bias, variance, and irreducible error add up to total error?
How does model complexity push bias and variance in opposite directions?
What is regularization, and how does it trade variance away for bias?
What techniques actually reduce a model's bias rather than its variance?
How do you keep data quality high enough to train on?
How can preprocessing and feature engineering leak test data into training?
How is data leakage different from ordinary overfitting?
How would you approach a badly imbalanced classification problem?
What are upsampling and downsampling, and when does SMOTE beat naive oversampling?
How do you get high-quality labels, and what do you do with ambiguous cases?
What is feature scaling, and why do some models need it?
What is the difference between parametric and non-parametric models?
How would you frame churn prediction for a product as a machine learning problem?
How would you cut fraudulent transactions for a credit card company?
How would you detect data leakage hiding in an existing pipeline?
How can you lower a model's variance without raising its bias?
This answer is part of Pro.
The full written answer, with the trade-offs and follow-ups an interviewer will probe.
No matches
Try a different filter or search term.
Machine Learning Fundamentals cheatsheet
- 30-second mental model01
- Split the data02
- Diagnose before you fix03
- Fix the fit04
- Clean the data05
- Leakage06
- Imbalanced classification07
- Features and models08
- Frame and ship09
- Pitfalls worth re-reading10
- + 4 more inside
31 of 36 Machine Learning Fundamentals answers are in Pro.
Full answers, code samples, and AI explanations that go simpler or deeper. Cancel anytime.
- Full answers + code
- AI explanations, simpler or deeper
- 1,000 AI credits / month
- Cancel anytime
Change topic
Pick a different technology or stack. Your current topic stays put until you choose a new one.
MEAN
MongoDB, Express, Angular, Node.jsMERN
MongoDB, Express, React, Node.jsDjango
Python Full-Stack DevelopmentRuby on Rails
Convention over ConfigurationServerless on AWS
Serverless Architecture on AWSInterviewers also test these - they're common to every stack, whichever one you picked above.
Flutter Mobile
Flutter Cross-Platform Mobile DevelopmentInterviewers also test these - they're common to every stack, whichever one you picked above.
Spring Boot
Enterprise Java Development.NET
Microsoft EcosystemVue
Vue.js, Vite, TypeScript, Tailwind, Node.jsGo Backend
Golang, gRPC, PostgreSQL, Redis, RabbitMQInterviewers also test these - they're common to every stack, whichever one you picked above.
FastAPI
Python, FastAPI, SQLAlchemy, PostgreSQLReact Native
React, TypeScript, Redux, FirebaseiOS Native
Swift, SwiftUI, UIKit, FirebaseAndroid Native
Java, Jetpack Compose, FirebaseDevOps / Platform
Docker, Kubernetes, Terraform, CI/CDInterviewers also test these - they're common to every stack, whichever one you picked above.
AI Engineer
LLMs, RAG, Agents, EvalsAI-Powered Developer
Claude Code, Copilot, Agentic WorkflowsCore SWE Interview Prep
Data structures, algorithms, OS, concurrency, networking, gitInterviewers also test these - they're common to every stack, whichever one you picked above.
Interviewers also test these - they're common to every stack, whichever one you picked above.