diff options
author | Vincent Rouvreau <10407034+VincentRouvreau@users.noreply.github.com> | 2022-09-16 09:39:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-16 09:39:17 +0200 |
commit | 771659c8d3fbd920b527df668cf3e7d55beabf3b (patch) | |
tree | ce5dda0f00b62cd9fdf9e6866235bc151a2a8b95 | |
parent | 4f12021fd49ea1dd43947fd98a65ce14e2db2371 (diff) | |
parent | 247a894a764dfa84cba3515c76ef7516f1b20952 (diff) |
Merge pull request #680 from VincentRouvreau/bug/fix_sklearn_cubical_example
Fixing bad newshape argument in sklearn cubical example
-rw-r--r-- | src/python/doc/cubical_complex_sklearn_itf_ref.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/python/doc/cubical_complex_sklearn_itf_ref.rst b/src/python/doc/cubical_complex_sklearn_itf_ref.rst index 2fb8ec6a..90ae9ccd 100644 --- a/src/python/doc/cubical_complex_sklearn_itf_ref.rst +++ b/src/python/doc/cubical_complex_sklearn_itf_ref.rst @@ -54,9 +54,9 @@ two holes in :math:`\mathbf{H}_1`, or, like in this example, three connected com X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.4, random_state=0) pipe = Pipeline( [ - ("cub_pers", CubicalPersistence(homology_dimensions=0, newshape=[28, 28], n_jobs=-2)), + ("cub_pers", CubicalPersistence(homology_dimensions=0, newshape=[-1, 28, 28], n_jobs=-2)), # Or for multiple persistence dimension computation - # ("cub_pers", CubicalPersistence(homology_dimensions=[0, 1], newshape=[28, 28], n_jobs=-2)), + # ("cub_pers", CubicalPersistence(homology_dimensions=[0, 1], newshape=[-1, 28, 28])), # ("H0_diags", DimensionSelector(index=0), # where index is the index in homology_dimensions array ("finite_diags", DiagramSelector(use=True, point_type="finite")), ( |