Browse Source

Cohomological parametrization

master
Lev 2 years ago
parent
commit
2dd7201765
  1. 358
      NoisyCircle.ipynb
  2. 3
      model/decoding.py
  3. 2
      model/persistence.py

358
NoisyCircle.ipynb

File diff suppressed because one or more lines are too long

3
model/decoding.py

@ -14,7 +14,7 @@ from tqdm import trange
import ripser
from persistence import persistence
from .persistence import persistence
EPSILON = 0.0000000000001
@ -59,6 +59,7 @@ def shortest_cycle(graph, node2, node1):
cycle.insert(0, node1)
return cycle
def cohomological_parameterization(X, cocycle_number=1, coeff=2, weighted=False):
"""
Compute an angular parametrization on the data set corresponding to a given

2
model/persistence.py

@ -16,7 +16,7 @@ import ripser
from persim import plot_diagrams
import gudhi
from decorators import multi_input
from .decorators import multi_input
def hausdorff(data1, data2, homdim, coeff):

Loading…
Cancel
Save