The Shape of an ML Problem
A free lesson from Swipe AI · Machine Learning Fundamentals, level 1 · updated October 2026
By the Swipe team, founded by Colin · how we make lessons
Almost every machine learning problem has the same basic shape: an input (the information you start with), an output (the thing you're actually trying to predict or produce), and training examples — real, past input-output pairs the system learns the pattern from.
Take a spam filter: the input is the text of an email, the output is a label — "spam" or "not spam" — and the training examples are thousands of real emails that were already correctly labeled by someone in the past. The system never gets a rulebook for what makes an email spammy; it works that out from the pattern across all those labeled examples.
This same input/output/examples shape holds up across wildly different problems: predicting a house's price (input: its features like size and location; output: a price; examples: past sale records), or recommending a video (input: what someone's watched before; output: a ranked list; examples: what people with similar history watched next). Once you can name these three parts, you can recognize an ML problem anywhere.
In a spam filter, what plays the role of "training examples"?
The thing a machine learning system is actually trying to predict or produce is called the ____.
A machine learning system is typically given an explicit rulebook defining exactly what makes an email spam.
The Machine Learning Landscape
10 questions · pass with 60% — just like in the app.
What defines supervised learning?
Unsupervised learning finds patterns or groupings in data without any labeled "right answers" to learn from.
Learning through trial and error, guided by rewards and penalties, is called ____.
How does machine learning relate to AI and deep learning?
Every machine learning system used in the real world today is a deep learning system.
Real, past input-output pairs a machine learning system learns a pattern from are called ____.
In a spam filter, what is the "output"?
The input/output/training-examples shape only applies to spam filters, not to other kinds of ML problems.
Many real, everyday ML systems still run on classic techniques rather than ____, because those techniques are often simpler and just as effective.
Why is it useful to be able to name the input, output, and training examples of a problem?
Free ai tools
Keep your streak going in Swipe AI
Swipe through every level of Machine Learning Fundamentals on your iPhone — with XP, stars, streaks, a personal advisor and the full track beyond these free levels.
Get the Swipe apps →