Uniform Distributed Persistent Homology (UDiPH)
UDiPH is a package that creates a new metric space where the points are uniformly sampled with respect to a global metric. It is oriented for creating Vietoris-Rips filtrations that are independent of the metric of the initial space. This work is very influced on UMAP.
UDiPH excells when comparing homology of spaces with different metrics, for example consider a continuous deformation acting on a set of points:
Standard Vietoris-Rips filtration:
Installation
Dependencies:
- Numpy
- Scipy
- Sklearn
UDIPH is available on PyPI,
pip install udiph
Usage
import udiph
M = udiph.UDIPH(X=X, n_neighbors=15, distance_matrix=False, return_complex=False)
Parameters:
X: numpy array of shape=(samples,features) or shape=(samples,samples) containing the data. If data is a pairwise distance matrix thendistance_matrixmust be set to True.n_neighbors: This determines the number of points sampled from the decision boundary. More points equates for a denser sample but slows the algorithm. Default is 1000.distance_matrix: Boolean value indicating if input data is or not a distance_matrixreturn_complex: Boolean value indicating whether to return the weighted 1-d simplicial complex instead of a pairwise distance matrix.
Returns:
M: numpy array (samples, samples) pairwise distance matrix with respect to new Riemannian metric.A: (optional) numpy array (samples, samples) adjacency matrix of the weighted 1-d simplicial complex.
How does it work?
The basic assumption on UDiPh relies on the idea that data comes uniformly sampled from an unknown Riemmannian manifold. As a consequence, "bigger" holes in the governing manifold are respresented by having a higher number of points sampled from their boundary, and "small" holes will have less points sampled.
For an in-depth explanation look at this post.
Citation
If you use UDiPH in your work or parts of the algorithm please consider citing:
Paper coming soon
Metadata
Release files for udiph 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| udiph-0.0.2.tar.gz | 3.9 kB | Without provenance | Details for udiph-0.0.2.tar.gz |
Release files / udiph-0.0.2.tar.gz
| Download URL | udiph-0.0.2.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
aba8c6eb40fb2141181aedbe1018ad7b4653dfcce5735697c415a7874b72bc4e
|
|
BLAKE2b-256 checksum How to use checksums |
339f43cce3d4a6a3e34700c4a190247f5b71e6f99e942ab22a2b86ca4037e18b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.22.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.10
|
Security for udiph 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.