Machine Learning

Teaching a computer to pick up patterns from data and use them to make predictions, instead of writing every rule by hand.

Quick summary

Two main types:

  • Supervised learning: learns from data that has the answers (labels).
  • Unsupervised learning: finds patterns in data with no answers given.

Supervised vs. unsupervised learning

1 Supervised learning

You give the model examples with an input (x) and the right output (y). It learns how they relate, then predicts y for a new x.

2 Unsupervised learning

You give the model data without labels and it finds structure on its own, like grouping customers who shop the same way (clustering).

3 Linear regression

A closer look at the simplest model, a straight line fitted to data.

Remember

Supervised = learn from known answers.
Unsupervised = find patterns with no answers given.

There are other types too, like reinforcement learning, where an agent learns by taking actions and getting rewards.


Table of contents