October 2017
Beginner to intermediate
270 pages
7h
English
Let's stop here for tabular data, and go for 2D data structures. As images are the most commonly used type of data in popular machine learning problems, we will show you some useful methods included in the SciPy stack.
The following code is optimized to run on the Jupyter notebook with inline graphics. You will find the source code in the source file, Dataset_IO.pynb:
import scipy.miscfrom matplotlib import pyplot as plt%matplotlib inlinetestimg = scipy.misc.imread("data/blue_jay.jpg")plt.imshow( testimg)
Importing a single image basically consists of importing the corresponding modules, using the imread method to read the indicated image into a matrix, and showing it using matplotlib. The % starting line corresponds to ...
Read now
Unlock full access