Skip to content
#

tda

Here are 68 public repositories matching this topic...

miltminz
miltminz commented Apr 14, 2020

Test code:

from sklearn.datasets import load_digits
from gtda.homology import CubicalPersistence
from gtda.diagrams import PairwiseDistance

X, _ = load_digits(return_X_y=True) 
nb_samples = 100
CP = CubicalPersistence(homology_dimensions=(0, 1))
X_diag = CP.fit_transform(X[:nb_samples].reshape(nb_samples, 8, 8))
PD = PairwiseDistance(
    metric='bottleneck', metric_params={'delta'
Mahdisadjadi
Mahdisadjadi commented Apr 7, 2019

In Representative Cocycles tutorial, this code block

result = ripser(x, coeff=17, do_cocycles=True)
diagrams = result['dgms']
cocycles = result['cocycles']
D = result['dm']

raises a KeyError: 'dm' since returned object doesn't have the key. The available keys are:

result.keys()
# ['dgms', 'cocycles', 'num_edges', 'dperm2all', 'idx_perm', 'r_cover']

Improve this page

Add a description, image, and links to the tda topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the tda topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.