Supervised vs Unsupervised
Learning without labels.
Supervised vs Unsupervised is a free Data Science Academy lesson on CoddyKit — lesson 1 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Data Science Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.
Two Ways to Learn
Machine learning splits into two big families: supervised learning, which uses labeled answers, and unsupervised learning, which does not. 🧭
Labels Are the Key
In supervised learning, every row carries a known label, the correct answer the model tries to predict for new data.
Learning From Examples
Supervised models study pairs of inputs and labels, then generalize that mapping to predict labels they have never seen.
No Answers Provided
Unsupervised learning has no labels at all. The algorithm must find structure in the data on its own, with nothing telling it what is right.
Clustering Finds Groups
The most common unsupervised task is clustering: grouping similar rows together so that natural segments emerge from raw data.
Similarity Drives It
Clustering decides who belongs together using a measure of distance, like Euclidean distance between feature values.
A Familiar Example
Sorting shoppers into segments by what they buy, with no preset categories, is classic clustering in action.
You Cannot Just Score It
Without labels, there is no simple accuracy to check. You judge clusters by how cohesive and well separated they are.
Same Data, Different Goal
The same table can feed either approach: add a target column for supervised work, or hold it back to let structure reveal itself.
Where Each Shines
Reach for supervised learning when you have a clear answer to predict; choose unsupervised when you want to explore unknown patterns.
It Lives in scikit-learn
Both families share one library. Clustering tools sit under sklearn.cluster, ready alongside the classifiers you already know.
from sklearn.cluster import KMeansQuick Check
Let us pin down what makes a task unsupervised.
Recap
Supervised learning predicts known labels; unsupervised learning, like clustering, discovers hidden groups when no labels exist. 🎯
Frequently asked questions
Is the “Supervised vs Unsupervised” lesson free?
Yes — the full text of “Supervised vs Unsupervised” is free to read here on the web, and the Data Science Academy course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Data Science Academy course, upgrade to CoddyKit PRO.
What will I learn in “Supervised vs Unsupervised”?
Learning without labels. You practise Data Science Academy with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.
Do I need any experience to start Data Science Academy?
No prior experience is required. Data Science Academy on CoddyKit is structured for beginners through advanced learners; this is — lesson 1 of 4, so you can start here or from the beginning and move at your own pace.
How long does the “Supervised vs Unsupervised” lesson take?
Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.
Can I write and run code in this Data Science Academy lesson?
Yes. Every Data Science Academy lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.
All lessons in this course
- Supervised vs Unsupervised
- k-Means and Choosing k
- Hierarchical and DBSCAN
- Profile and Name Your Clusters