from sklearn.datasets import fetch_lfw_people
lfw = fetch_lfw_people(data_home='./scikit_learn_data/', min_faces_per_person=100)
lfw.data.shape
lfw.images.shape
from matplotlib import pyplot as plt
plt.subplots_adjust(wspace=0.2, hspace=0.6)
for i in range(3):
subplt = plt.subplot(1,3, i+1)
subplt.imshow(lfw.images[i], cmap='gray')
subplt.set_title(lfw.target_names[lfw.target[i]])
plt.show()