파이썬(python) 올리베티 얼굴 데이터셋 불러오기 sklearn fetch_olivetti_faces
파이썬(python) 올리베티 얼굴 데이터셋 불러오기 sklearn fetch_olivetti_faces¶ In [1]: from sklearn.datasets import fetch_olivetti_faces faces = fetch_olivetti_faces() faces.images[0].shape, faces.data[0].shape, faces.target[0] Out[1]: ((64, 64), (4096,), 0) In [7]: import matplotlib.pyplot as plt # 워본 사진 print(faces.images[0].shape, faces.data[0].shape, faces.target[0]) plt.imshow(faces.images[0]) (64, 64) (4096,..
2023. 3. 21.