You are viewing a free preview of this lesson.
Subscribe to unlock all 10 lessons in this course and every other course on LearningBro.
Unsupervised learning is a type of machine learning where the algorithm learns from unlabelled data — there are no predefined correct answers. The goal is to discover hidden patterns, structures, or groupings in the data without human guidance on what the output should be.
| Aspect | Supervised Learning | Unsupervised Learning |
|---|---|---|
| Data | Labelled (X, y) | Unlabelled (X only) |
| Goal | Predict known outputs | Discover hidden structure |
| Evaluation | Compare predictions to known labels | Domain knowledge, visual inspection, internal metrics |
| Examples | Spam detection, price prediction | Customer segmentation, anomaly detection |
Clustering groups similar data points together based on their features. Points within the same cluster are more similar to each other than to points in other clusters.
K-Means is the most popular clustering algorithm. It partitions data into k clusters by iteratively assigning points to the nearest cluster centre and updating the centres.
How K-Means works:
Subscribe to continue reading
Get full access to this lesson and all 10 lessons in this course.