Skip to content

Commit a8207db

Browse files
authored
Merge pull request #45 from CSU-TDA/master
Transition of DARPA SD2 Implementation of PersistenceImages() into persim module
2 parents 74a6d61 + 36a3e71 commit a8207db

13 files changed

+1841
-356
lines changed

docs/conf.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,9 @@
2121

2222
html_short_title = project
2323
htmlhelp_basename = 'Persimdoc'
24+
25+
autodoc_default_options = {
26+
'members': True
27+
}
28+
29+
autodoc_member_order = 'groupwise'

docs/index.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ To contribute please fork the project make your changes and submit a pull reques
3333
:hidden:
3434
:caption: User Guide
3535

36-
notebooks/Persistence Images
36+
notebooks/Persistence images
3737
notebooks/distances
3838
reference/index
3939

@@ -44,7 +44,8 @@ To contribute please fork the project make your changes and submit a pull reques
4444
:caption: Tutorials
4545

4646
notebooks/Classification with persistence images
47-
47+
notebooks/Persistence barcode measure
48+
4849

4950
.. |Downloads| image:: https://pypip.in/download/persim/badge.svg
5051
:target: https://pypi.python.org/pypi/persim/

docs/notebooks/Classification with persistence images.ipynb

Lines changed: 59 additions & 34 deletions
Large diffs are not rendered by default.

docs/notebooks/Persistence Images.ipynb

Lines changed: 0 additions & 268 deletions
This file was deleted.

docs/notebooks/Persistence barcode measure.ipynb

Lines changed: 13 additions & 25 deletions
Large diffs are not rendered by default.

docs/notebooks/Persistence images.ipynb

Lines changed: 516 additions & 0 deletions
Large diffs are not rendered by default.

docs/reference/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@ Persistence Images
2121

2222
.. autosummary::
2323
:toctree: stubs
24+
:recursive:
2425
:nosignatures:
2526

27+
persim.PersistenceImager
2628
persim.PersImage
2729

2830

persim/gromov_hausdorff.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,12 @@ def gromov_hausdorff(
122122
123123
Parameters
124124
-----------
125-
AG: np.array (|V(G)|×|V(G)|)
126-
(Sparse) adjacency matrix of graph G, or an iterable of
125+
AG: (N,N) np.array
126+
(Sparse) adjacency matrix of graph G with N vertices, or an iterable of
127127
adjacency matrices if AH=None.
128-
AH: np.array (|V(H)|×|V(H)|)
129-
(Sparse) adjacency matrix of graph H, or None.
130-
mapping_sample_size_order: np.array (2)
128+
AH: (M,M) np.array
129+
(Sparse) adjacency matrix of graph H with M vertices, or None.
130+
mapping_sample_size_order: (2,) np.array
131131
Parameter that regulates the number of mappings to sample when
132132
tightening upper bound of the mGH distance.
133133
@@ -184,12 +184,12 @@ def make_distance_matrix_from_adjacency_matrix(AG):
184184
185185
Parameters
186186
-----------
187-
AG: np.array (|V(G)|×|V(G)|)
188-
(Sparse) adjacency matrix of simple unweighted graph G.
187+
AG: (N,N) np.array
188+
(Sparse) adjacency matrix of simple unweighted graph G with N vertices.
189189
190190
Returns
191191
--------
192-
DG: np.array (|V(G)|×|V(G)|)
192+
DG: (N,N) np.array
193193
(Dense) distance matrix of the compact metric space
194194
representation of G based on its shortest path lengths.
195195
"""

0 commit comments

Comments
 (0)