July 2017
Intermediate to advanced
382 pages
9h 13m
English
As a final test for this chapter, let's visualize some data from an external dataset, such as the digits dataset from scikit-learn.
Specifically, We will need three tools for visualization:
So let's start by importing all of these:
In [1]: import numpy as np... from sklearn import datasets... import matplotlib.pyplot as plt... %matplotlib inline
The first step is to actually load the data:
In [2]: digits = datasets.load_digits()
If we remember correctly, digits is supposed to have two different fields: a data field containing the actual image data, and a target field containing the image labels. Rather than trust our memory, ...
Read now
Unlock full access