It seems that multipers does all computations over the field with two elements.
Add the homology_coeff_field=11 parameter present in the Gudhi SimplexTree compute_persistence method.
import multipers as mp
from multipers.data.synthetic import noisy_annulus
X = noisy_annulus(n1=500, n2=0)
from multipers.filtrations.density import KDE
density = KDE(bandwidth=0.2).fit(X).score_samples(X)
# a bit of renormalization
density -= density.min()
density /= density.max()
from multipers.filtrations import RipsLowerstar, RipsCodensity
simplextree = RipsLowerstar(points=X, function = 1-density, threshold_radius=2.5) # this is a simplicial complex
simplextree.collapse_edges(-2) # Removes some unnecessary edges (while staying quasi isomorphic)
simplextree.expansion(2) # Adds the 2-simplices (necessary for $H_1$ computations)
bimod = mp.module_approximation(simplextree, homology_coeff_field=11)
Checks.
It seems that multipers does all computations over the field with two elements.
Add the
homology_coeff_field=11parameter present in the Gudhi SimplexTree compute_persistence method.Checks.