Getting ready

Let us start by loading and visualizing the iris dataset available in scikit-learn:

Get scikit-learn Cookbook - Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.