Replies: 1 comment 3 replies
-
Hi @mir-cat! Thanks for an interesting question. Specifically, which kinds of diagram distances are you hoping to compute? Bottleneck and Wasserstein are already implemented in C++ with Python bindings, so no further performance gains can be made there beyond parallelism (which we already offer). As for the other distances, the place to look is https://github.com/giotto-ai/giotto-tda/blob/master/gtda/diagrams/_metrics.py. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
I have been using the pairwise distance functions to create distance matrices for manifold learning (UMAP). Up to this point, I have been calculating full distance matrices as input to the algorithm.
Now however, I am in a situation where I am calculating the distances between 10s of thousands of persistence diagrams and I can no longer calculate the full distance mayrices. In order to use the heuristics built into the UMAP algorithm, I need need to be able to compile the distance function with Numba. Unfortunately, I believe this means I need to write them from scratch.
I have attempted to write functions that emulate the behavior of
gtda.diagrams.PairwiseDistance
, which I have used previously, but I cannot seem to be able to match the output. Additionally, I have had trouble finding the code that actually performs the distance calculation. Would it be possible to get references for how the distances are calculated?Thank you so much!
Beta Was this translation helpful? Give feedback.
All reactions