MCPcopy Index your code
hub / github.com/lawlite19/MachineLearning_Python / recoverData

Function recoverData

PCA/PCA.py:108–112  ·  view source on GitHub ↗
(Z,U,K)

Source from the content-addressed store, hash-verified

106
107# 恢复数据
108def recoverData(Z,U,K):
109 X_rec = np.zeros((Z.shape[0],U.shape[0]))
110 U_recude = U[:,0:K]
111 X_rec = np.dot(Z,np.transpose(U_recude)) # 还原数据(近似)
112 return X_rec
113
114# 显示图片
115def display_imageData(imgData):

Callers 2

PCA_2DFunction · 0.85
PCA_faceImageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected