(Z,U,K)
| 106 | |
| 107 | # 恢复数据 |
| 108 | def 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 | # 显示图片 |
| 115 | def display_imageData(imgData): |
no outgoing calls
no test coverage detected