September 2019
Intermediate to advanced
420 pages
10h 29m
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 trusting our memory, ...
Read now
Unlock full access