Skip to content

Commit

Permalink
Update 06_pca.ipynb
Browse files Browse the repository at this point in the history
  • Loading branch information
Polkas committed Nov 28, 2023
1 parent 1683651 commit 292c648
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/multidim/notebooks/06_pca.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@
"# principal components\n",
"# X_principals = X * V = U * S * Vt * V = U * S\n",
"pca_components = pca.fit_transform(scaled_seul1988_x)\n",
"assert np.allclose(np.abs(np.round(pca_components, 1)), np.abs(np.round(np.matmul(scaled_seul1988_x, Vt.T), 1)))\n",
"np.abs(np.round(pca_components, 1)), np.abs(np.round(np.matmul(scaled_seul1988_x, Vt.T), 1))\n",
"assert np.allclose(pca.explained_variance_ratio_, s**2 / np.sum(s**2))"
]
},
Expand Down

0 comments on commit 292c648

Please sign in to comment.