Tokencito Game of the day Play

What is supervised and unsupervised learning?

They are two ways to train a machine learning model. In supervised learning, each example comes with the right answer, the label: a photo and the word "cat". In unsupervised learning, the examples have no label and the model looks for groups or patterns on its own, like customers who buy alike.

📚Thousands of examples⚙️Tunes its numbers🆕Tested on new data

Put it to the test

A question from the app. Pick an answer.

You train a model on thousands of photos labeled "cat" or "dog". What learning is it?

Start playing on the web

Supervised: examples with the answer

You give it thousands of emails labeled "spam" or "not spam", and the model learns to label new emails. Or you give it houses with their sale price, and it learns to estimate the price of a house it never saw. In the first case it picks a category (a classifier); in the second, it computes a number.

The expensive part is the labels: often a person adds them, one example at a time. And if the labels are wrong, the model learns the mistake.

Unsupervised: finding groups with no answer

A store gives a model its customers' purchases without saying what to look for. The model puts together people who buy alike: some get diapers every week, others only show up for sales. What each group means and what to do with it is up to a person afterwards.

It also helps find the unusual: a card payment that looks like none of the usual ones may be fraud, even if nobody ever labeled that kind of fraud before.

They are not the only ways

Reinforcement: the model tries actions and gets rewards or penalties, like someone learning a video game. Self-supervised: the labels come from the data itself. That is how text generating LLMs are pretrained: the model tries to predict the next token from the previous ones, and the answer is already in the text, with nobody labeling anything by hand.

One model can go through several: a chat like ChatGPT is first pretrained this way, then tuned with answers written by people (supervised) and with their ratings (reinforcement). All of that is training; when you use it, what you tell it helps while it stays in the context, but it is not written into its weights.

Common mistakes

"Without labels it cannot learn." It can: unsupervised learning learns patterns and similarities without anyone marking the right answer first. "Supervised means a person watches it while it learns." It means the examples come with the answer. "Everything is either supervised or unsupervised." There is also reinforcement and self-supervised learning, and they get combined.