Milan Ghimire

Notes

Machine Learning

My revision notes on machine learning, organised by chapter so I can come back and refresh quickly.

What Machine Learning Really Is

Learning rules from examples

Normal programming means writing the rules yourself. If the email contains this word, mark it as spam. Machine learning flips that around. Instead of writing the rules, you show the computer many examples and let it work out the rules on its own.

You hand it thousands of emails already labelled spam or not spam, and it figures out the patterns that separate the two. The output of that process is a model, which is just a function that takes an input and returns a prediction.

Why bother

Some problems are almost impossible to write rules for. Nobody can list every rule that tells a cat from a dog in a photo, but we can gather plenty of labelled pictures. Whenever the pattern is real but too messy to spell out by hand, learning from data wins.

A model is only ever as good as the data behind it. Feed it biased or sloppy examples and it learns biased, sloppy rules, no matter how clever the method on top.