April 2020
Intermediate to advanced
438 pages
12h 2m
English
We will use the Olivetti faces dataset for this recipe. The dataset contains a total of 400 grayscale face images (each of size 64 x 64), 10 per each of the 40 objects. As usual, let's start by importing the required libraries:
import numpy as npfrom numpy.random import RandomStateimport matplotlib.pyplot as pltfrom sklearn.datasets import fetch_olivetti_facesfrom sklearn import decompositionfrom skimage.util import random_noisefrom skimage import img_as_floatfrom time import timeimport scipy.fftpack as fpimport pywt
Read now
Unlock full access