Originally published on CodingCush .
Machine learning is a way of teaching computers to find patterns in examples, instead of giving them step by step rules for everything. You show the computer thousands of labelled examples, it learns the pattern, and then it can guess the answer for new examples it has never seen. In this guide you will learn how that works, the three main types, and run a tiny working example.
The Simple Idea: Learn from Examples, Not Rules
Imagine teaching a child to spot dogs. You would not hand them a rulebook about ear shapes and nose sizes. You would point at dogs and say "dog", point at cats and say "cat", and after enough examples the child gets it. Machine learning works the same way.
A traditional program is a list of rules written by a programmer: if the email contains the word "lottery", mark it spam.…