Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

simplex index 9223716361969802160 in filtration is larger than maximum index 36028797018963967 #678

Open
jbeuria opened this issue Sep 7, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@jbeuria
Copy link

jbeuria commented Sep 7, 2023

Describe the bug

File "/home/server/.local/lib/python3.10/site-packages/gtda/homology/simplicial.py", line 1126, in _weak_alpha_diagram
Xdgms = ripser(dm, maxdim=self._max_homology_dimension,
File "/home/server/.local/lib/python3.10/site-packages/gph/python/ripser_interface.py", line 603, in ripser_parallel
res = _compute_ph_vr_sparse(
File "/home/server/.local/lib/python3.10/site-packages/gph/python/ripser_interface.py", line 51, in _compute_ph_vr_sparse
ret = gph_ripser.rips_dm_sparse(I, J, V, I.size, N, coeff,
OverflowError: simplex index 9223716361969802160 in filtration is larger than maximum index 36028797018963967

To reproduce

Steps to reproduce the behavior:
The number points ~ 1 million in point cloud causes so.

@jbeuria jbeuria added the bug Something isn't working label Sep 7, 2023
@matteocao
Copy link
Contributor

@jbeuria do you have any clue how this can be fixed? It seems a generic error, possibly requiring to change the type of some indices. If you have ideas and can help with a PR, that would be great.

@BrandonJRobinson
Copy link

When trying to compute VietorisRipsPersistence with homology_dimensions > 3, I've run into a the same issue:

OverflowError: simplex index 9223642139012799036 in filtration is larger than maximum index 36028797018963967

To reproduce: take a relatively small number of samples (>10000) but a large number of features (~1000).

@jbeuria
Copy link
Author

jbeuria commented Sep 19, 2024

@jbeuria do you have any clue how this can be fixed? It seems a generic error, possibly requiring to change the type of some indices. If you have ideas and can help with a PR, that would be great.

Unfortunately, one has to reduce number of simplices getting formed. maximum filtration parameter can be reduced or a different kind of simplicial complex could be used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants