In [1]:
from sklearn.datasets import fetch_olivetti_faces

In [2]:
data = fetch_olivetti_faces()

In [3]:
print(type(data))


<class 'sklearn.utils.Bunch'>

In [4]:
print(data.keys())


dict_keys(['data', 'images', 'target', 'DESCR'])

In [5]:
print(data.data.shape)


(400, 4096)

In [6]:
print(data.target.shape)


(400,)

In [7]:
print(data.images.shape)


(400, 64, 64)