From 1683651b8e24324fa78689f4b9ede67e362e9639 Mon Sep 17 00:00:00 2001 From: Maciej Nasinski Date: Tue, 28 Nov 2023 14:08:50 +0100 Subject: [PATCH] Update 06_pca.ipynb --- src/multidim/notebooks/06_pca.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/multidim/notebooks/06_pca.ipynb b/src/multidim/notebooks/06_pca.ipynb index a3b26c8..f016d74 100644 --- a/src/multidim/notebooks/06_pca.ipynb +++ b/src/multidim/notebooks/06_pca.ipynb @@ -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, 3)), np.abs(np.round(np.matmul(scaled_seul1988_x, Vt.T), 3)))\n", + "assert np.allclose(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))" ] },