A Visual Introduction To Machine Learning

Background

If you're not an expert in machine learning, it's normal to feel overwhelmed by the sheer number of different machine learning approachs that can be taken to any given problem. These different techniques - called algorithms - each have different pros and cons that allow them to work well for some tasks and but mean they may perform poorly on others.
We're going to look in detail at three particularly common algorithms and use visualization to understand thier core properties. To do this, we'll be using a dataset known as the Iris dataset. It is a simple table of observations of for 3 different species of irises.
Iris virginica Iris versicolor Iris setosa
If you saw a new picture of an iris, could you say which of these three species it belongs to?
That might be hard to do! But fortunately, we have computers to help us! In machine learning this challenge is known as classification, that is, trying to decide which group a new example belongs to based on its features. In this case, we would be looking at measurements of the petal and sepal (green part that supports the petal) for a new example iris and trying to guess which species of iris it is. Here are three rows directly from the Iris dataset:
Record ID Sepal Length (cm) Sepal Width (cm) Petal Length (cm) Petal Width (cm) Flower Type
1 5.1 3.5 1.4 0.2 Iris setosa
2 7.0 3.2 4.7 1.4 Iris versicolor
3 6.3 3.3 6.0 2.5 Iris virginica
Now can you guess what flower this is?
Record ID Sepal Length (cm) Sepal Width (cm) Petal Length (cm) Petal Width (cm) Flower Type
4 5.7 3.8 1.7 0.3 ??????????
It's Iris setosa! Whether you got it right or not, imagine you had a thousand or even a million of these records that you needed to label this same way. The whole Iris dataset is only 150 rows, but even at that number you'd be cringing. Luckily, as you may have guessed, this task is perfect for machine learning algorithms!
So back to the plethora of algorithms that might help us with our flower classification task, we can make things easier by dividing all of them up into two categories:
Now you're ready to dig a little deeper! Click one of the algorithms below to explore a specific algorithm in-depth.