Skip to content

Commit 09781cd

Browse files
committed
📝 PCA主成分分析,数据降维
1 parent b094480 commit 09781cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -950,7 +950,7 @@ def runKMeans(X,initial_centroids,max_iters,plot_process):
950950
- ![$${X_{approx}} = {(U_{reduce}^{ - 1})^{ - 1}}Z = {U_{reduce}}Z$$](http://latex.codecogs.com/gif.latex?%5Cfn_cm%20%24%24%7BX_%7Bapprox%7D%7D%20%3D%20%7B%28U_%7Breduce%7D%5E%7B%20-%201%7D%29%5E%7B%20-%201%7D%7DZ%20%3D%20%7BU_%7Breduce%7D%7DZ%24%24)
951951
- 实现代码:
952952
```
953-
# 恢复数据
953+
# 恢复数据
954954
def recoverData(Z,U,K):
955955
X_rec = np.zeros((Z.shape[0],U.shape[0]))
956956
U_recude = U[:,0:K]

0 commit comments

Comments
 (0)