Town 05 · Machine learning
The schoolhouse
Eight residents who learn from examples instead of rules. Each one has a different idea of what a lesson looks like, and the right teacher depends mostly on the shape of your data.
Linear · one weight per input
The surveyor
Give her a cloud of points and she lays one straight edge through them, nudging it until it misses them all by as little as possible. Each input gets one weight, so you can read exactly what she learned.
The ideaThe best straight line
Trees · yes or no, one at a time
The questioner
He asks one yes-or-no question, then another, until the answer is obvious. Alone he is easy to fool, but a few hundred of him, each one fixing the last one’s mistakes, still beat everyone else on a spreadsheet.
The ideaA path of yes-or-no questions
Ensembles · many weak models, one strong one
The coach
On their own, her players are barely better than a coin toss. She sends them on one after another, each told to fix what the last one got wrong, and together they win. On tables of data, that team is very hard to beat.
The ideaMany weak models, added up
Instance-based · k-nearest neighbours
The neighbour
She never studies for the test. She keeps every example she has ever seen, and when something new arrives she finds the few that sit closest to it and lets them vote.
The ideaAsk the nearest examples
Unsupervised · no answers given
The organiser
Nobody tells her what the groups are. She drops a few pins at random, moves each pin to the middle of the points nearest to it, and repeats until the pins stop moving. The groups were in the data all along.
The ideaFind the groups nobody named
Probabilistic · answers with odds
The forecaster
He never just says rain. He says seventy per cent, and means it: of all the days he says seventy, it rains on about seven in ten. Every new clue narrows his guess, and he always tells you how sure he is.
The ideaAn answer, and how sure it is
Neural · layers that learn
The apprentice
A signal passes forward through layer after layer of tiny dials. When the answer comes out wrong, the blame flows back the same way and every dial turns a little. After millions of mistakes, he can read text, images and sound.
The ideaLayers tuned by their mistakes
Reinforcement · learn from rewards
The player
Nobody tells him the right move. He tries one, and now and then the game hands him a point or takes one away. Over thousands of games he learns which moves pay off later. The same idea taught a machine to play Go, and teaches chatbots to be helpful.
The ideaTry, score, and do more of what paid