Preprocessing #############################.
More...
Preprocessing #############################.
This is a class for the affine transformation (x,y) -> (x,y-x) to be applied on persistence diagrams.
◆ __init__()
def gudhi.representations.preprocessing.BirthPersistenceTransform.__init__ |
( |
|
self | ) |
|
Constructor for BirthPersistenceTransform class.
◆ __call__()
def gudhi.representations.preprocessing.BirthPersistenceTransform.__call__ |
( |
|
self, |
|
|
|
diag |
|
) |
| |
Apply BirthPersistenceTransform on a single persistence diagram and outputs the result.
Parameters:
diag (n x 2 numpy array): input persistence diagram.
Returns:
n x 2 numpy array: transformed persistence diagram.
◆ fit()
def gudhi.representations.preprocessing.BirthPersistenceTransform.fit |
( |
|
self, |
|
|
|
X, |
|
|
|
y = None |
|
) |
| |
Fit the BirthPersistenceTransform class on a list of persistence diagrams (this function actually does nothing but is useful when BirthPersistenceTransform is included in a scikit-learn Pipeline).
Parameters:
X (list of n x 2 numpy array): input persistence diagrams.
y (n x 1 array): persistence diagram labels (unused).
◆ transform()
def gudhi.representations.preprocessing.BirthPersistenceTransform.transform |
( |
|
self, |
|
|
|
X |
|
) |
| |
Apply the BirthPersistenceTransform function on the persistence diagrams.
Parameters:
X (list of n x 2 numpy array): input persistence diagrams.
Returns:
list of n x 2 numpy array: transformed persistence diagrams.
The documentation for this class was generated from the following file:
- src/python/gudhi/representations/preprocessing.py