Public Member Functions | |
def | __init__ (self, threshold=10) |
def | fit (self, X, y=None) |
def | transform (self, X) |
def | __call__ (self, diag) |
This is a class for computing topological vectors from a list of persistence diagrams. The topological vector associated to a persistence diagram is the sorted vector of a slight modification of the pairwise distances between the persistence diagram points. See https://diglib.eg.org/handle/10.1111/cgf12692 for more details.
def gudhi.representations.vector_methods.TopologicalVector.__init__ | ( | self, | |
threshold = 10 |
|||
) |
Constructor for the TopologicalVector class. Parameters: threshold (int): number of distances to keep (default 10). This is the dimension of the topological vector. If -1, this threshold is computed from the list of persistence diagrams by considering the one with the largest number of points and using the dimension of its corresponding topological vector as threshold.
def gudhi.representations.vector_methods.TopologicalVector.__call__ | ( | self, | |
diag | |||
) |
Apply TopologicalVector on a single persistence diagram and outputs the result. Parameters: diag (n x 2 numpy array): input persistence diagram. Returns: numpy array with shape (**threshold**): output topological vector.
def gudhi.representations.vector_methods.TopologicalVector.fit | ( | self, | |
X, | |||
y = None |
|||
) |
Fit the TopologicalVector class on a list of persistence diagrams (this function actually does nothing but is useful when TopologicalVector is included in a scikit-learn Pipeline). Parameters: X (list of n x 2 or n x 1 numpy arrays): input persistence diagrams. y (n x 1 array): persistence diagram labels (unused).
def gudhi.representations.vector_methods.TopologicalVector.transform | ( | self, | |
X | |||
) |
Compute the topological vector for each persistence diagram individually and concatenate the results. Parameters: X (list of n x 2 numpy arrays): input persistence diagrams. Returns: numpy array with shape (number of diagrams) x (**threshold**): output topological vectors.
GUDHI Version 3.3.0 - C++ library for Topological Data Analysis (TDA) and Higher Dimensional Geometry Understanding. - Copyright : MIT | Generated on Tue Aug 11 2020 11:58:59 for GUDHI by Doxygen 1.8.18 |