diff options
author | Vincent Rouvreau <vincent.rouvreau@inria.fr> | 2022-02-04 09:30:13 +0100 |
---|---|---|
committer | Vincent Rouvreau <vincent.rouvreau@inria.fr> | 2022-02-04 09:30:13 +0100 |
commit | d4fbf78cf12488ecdf79f26ef6c05d6d1323704a (patch) | |
tree | 4dc4eae5cd7605de62103d4e3eefa3eb2547f326 /src/python/doc | |
parent | af30ee3c2966d29a4e71893fa2c671aeaeb3497f (diff) |
code review: rename dimensions as 'newshape'
Diffstat (limited to 'src/python/doc')
-rw-r--r-- | src/python/doc/cubical_complex_sklearn_itf_ref.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/python/doc/cubical_complex_sklearn_itf_ref.rst b/src/python/doc/cubical_complex_sklearn_itf_ref.rst index a57e5fbb..8248343b 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(persistence_dimension=0, dimensions=[28, 28], n_jobs=-2)), + ("cub_pers", CubicalPersistence(persistence_dimension=0, newshape=[28, 28], n_jobs=-2)), # Or for multiple persistence dimension computation - # ("cub_pers", CubicalPersistence(persistence_dimension=[0, 1], dimensions=[28, 28], n_jobs=-2)), + # ("cub_pers", CubicalPersistence(persistence_dimension=[0, 1], newshape=[28, 28], n_jobs=-2)), # ("H0_diags", DimensionSelector(index=0), # where index is the index in persistence_dimension array ("finite_diags", DiagramSelector(use=True, point_type="finite")), ( @@ -78,7 +78,7 @@ two holes in :math:`\mathbf{H}_1`, or, like in this example, three connected com There are 6825 eights out of 70000 numbers. Classification report for TDA pipeline Pipeline(steps=[('cub_pers', - CubicalPersistence(dimensions=[28, 28], n_jobs=-2)), + CubicalPersistence(newshape=[28, 28], n_jobs=-2)), ('finite_diags', DiagramSelector(use=True)), ('pers_img', PersistenceImage(bandwidth=50, im_range=[0, 256, 0, 256], |