Swipe
SwipeSwipe
Swipe Apps

Paths

Motivation

Information

The Machine Learning Landscape · Lesson 3 of 9

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

🤖
Every ML problem, no matter how fancy it sounds, breaks down into the same three pieces. 🧱

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.

Quick check

In a spam filter, what plays the role of "training examples"?

Fill in the blank

The thing a machine learning system is actually trying to predict or produce is called the ____.

True or false

A machine learning system is typically given an explicit rulebook defining exactly what makes an email spam.

Chapter quiz

The Machine Learning Landscape

10 questions · pass with 60% — just like in the app.

Quick check

What defines supervised learning?

True or false

Unsupervised learning finds patterns or groupings in data without any labeled "right answers" to learn from.

Fill in the blank

Learning through trial and error, guided by rewards and penalties, is called ____.

Quick check

How does machine learning relate to AI and deep learning?

True or false

Every machine learning system used in the real world today is a deep learning system.

Fill in the blank

Real, past input-output pairs a machine learning system learns a pattern from are called ____.

Quick check

In a spam filter, what is the "output"?

True or false

The input/output/training-examples shape only applies to spam filters, not to other kinds of ML problems.

Fill in the blank

Many real, everyday ML systems still run on classic techniques rather than ____, because those techniques are often simpler and just as effective.

Quick check

Why is it useful to be able to name the input, output, and training examples of a problem?

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 →