# -*- coding: utf-8 -*-
"""
Created on Thu Apr  8 00:00:24 2021

@author: junyanee
"""

from sklearn import datasets
import matplotlib.pyplot as plt

lfw = datasets.fetch_lfw_people(min_faces_per_person = 70, resize = 0.4) #데이터셋 읽기

plt.figure(figsize=(20,5))

for i in range(8): #처음 8명을 디스플레이
    plt.subplot(1, 8, i+1)
    plt.imshow(lfw.images[i], cmap = plt.cm.bone)
    plt.title(lfw.target_names[lfw.target[i]])
    
plt.show()
666d0d5e6ccfff78c988e052bc84da524b17226e
<mask token>

<mask token>
plt.figure(figsize=(20, 5))
for i in range(8):
    plt.subplot(1, 8, i + 1)
    plt.imshow(lfw.images[i], cmap=plt.cm.bone)
    plt.title(lfw.target_names[lfw.target[i]])
plt.show()

<mask token>
lfw = datasets.fetch_lfw_people(min_faces_per_person=70, resize=0.4)
plt.figure(figsize=(20, 5))
for i in range(8):
    plt.subplot(1, 8, i + 1)
    plt.imshow(lfw.images[i], cmap=plt.cm.bone)
    plt.title(lfw.target_names[lfw.target[i]])
plt.show()

<mask token>
from sklearn import datasets
import matplotlib.pyplot as plt
lfw = datasets.fetch_lfw_people(min_faces_per_person=70, resize=0.4)
plt.figure(figsize=(20, 5))
for i in range(8):
    plt.subplot(1, 8, i + 1)
    plt.imshow(lfw.images[i], cmap=plt.cm.bone)
    plt.title(lfw.target_names[lfw.target[i]])
plt.show()

# -*- coding: utf-8 -*-
"""
Created on Thu Apr  8 00:00:24 2021

@author: junyanee
"""

from sklearn import datasets
import matplotlib.pyplot as plt

lfw = datasets.fetch_lfw_people(min_faces_per_person = 70, resize = 0.4) #데이터셋 읽기

plt.figure(figsize=(20,5))

for i in range(8): #처음 8명을 디스플레이
    plt.subplot(1, 8, i+1)
    plt.imshow(lfw.images[i], cmap = plt.cm.bone)
    plt.title(lfw.target_names[lfw.target[i]])
    
plt.show()