Last active
January 23, 2020 14:34
-
-
Save lewtun/c9832f3bc98c7965c0ac76902307ffac to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import gtda.diagrams as diagrams | |
# calculate persistence diagram | |
persistence_diagram = ... | |
# define type of amplitude to calculate | |
amplitude = diagrams.Amplitude(metric="wasserstein") | |
# calculate amplitude of diagram | |
persistence_diagram_amplitude = amplitude.fit_transform(persistence_diagram) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment