Skip to content

Commit

Permalink
Update 06_pca.ipynb
Browse files Browse the repository at this point in the history
  • Loading branch information
Polkas authored Nov 28, 2023
1 parent c2a712b commit 6910557
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 @@ -560,7 +560,7 @@
"# X_principals = X * V = U * S * Vt * V = U * S\n",
"pca_components = pca.fit_transform(scaled_seul1988_x)\n",
"np.abs(np.round(pca_components, 2)), np.abs(np.round(np.matmul(scaled_seul1988_x, Vt.T), 2))\n",
"assert np.allclose(pca.explained_variance_ratio_, s**2 / np.sum(s**2))"
"pca.explained_variance_ratio_, (s**2 / np.sum(s**2))"
]
},
{
Expand Down

0 comments on commit 6910557

Please sign in to comment.