classify apple and orange
Support Vector Machines in Python
Please consider watching this video if any section of this article is unclear. How to set up your programming environment can be found at the start of: Episode 4.3 We can now use the support vector machine to classify apples and oranges given the fruit's weight and size. For example -- let's say we recorded a fruit to have a weight of 70 grams and size of 4.6cm. We obtain a prediction of this fruit being an orange. Looking at the graph in the scatterplot above we note the recording of 70 grams and size of 4.6cm lies below the hyperplane, hence an orange is predicted.