Ex 7: Face completion with a multi-output estimators
通用範例/範例七: Face completion with a multi-output estimators
(一)引入函式庫及內建影像資料庫
from sklearn.datasets import fetch_olivetti_faces
data = fetch_olivetti_faces()
targets = data.target
data = data.images.reshape((len(data.images), -1))(二)資料訓練
(三)matplotlib.pyplot畫出結果
matplotlib.pyplot畫出結果
Last updated