PCA 手動實現(python)

import numpy as np from sklearn.decomposition import PCA def PCA_Demo(X, k): avg = np.mean(X, axis=1) for i in range(0, X.shape[1]): X[:, i] = X[:, i] - avg[i] print('X={}'.format(
相關文章
相關標籤/搜索