Torch-TDA
Automatic differentiation for topological data analysis.
This package provides utilities for using constructions in topological data analysis with automatic differentiation. It wraps functionality from
- BATS for persistent homology
- persim for computations comparing persistence diagrams
- topologylayer for polynomial features of barcodes
The design is inspired by and draws from topologylayer. Key differences are that torch-tda uses bats for faster topological computations, and the two packages have different feature sets.
Here is the documentation and examples.
Use
Package installation provides a package under the torch_tda namespace. Functionality is primarily under torch_tda.nn, which provides several PyTorch layers.
import torch_tda
Installation
First, it is recommended to set up a conda environment
conda create -n bats
conda activate bats
If you are installing torch_tda from the development version, please install the development version of BATS.py, install it from source.
Otherwise, you can use the latest release of BATS.py
pip install bats-tda
Attension: please use Linux OS to install bats-tda for now and the support for Mac OS will come soon.
Now, you can setup with setup.py
python setup.py install
Documentation
If you want to contribute to the documenation, you can add some jupyter notebooks to the docs/examples folder and then generate documentation using Sphinx
cd docs
pip install -r requirements.txt
make html
xdg-open _build/html/index.html # or just open this file
Metadata
Release files for torch-tda 0.0.1
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 | |
|---|---|---|---|---|
| torch-tda-0.0.1.tar.gz | 11.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| torch_tda-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 23.7 kB
Release files / torch-tda-0.0.1.tar.gz
| Download URL | torch-tda-0.0.1.tar.gz |
|---|---|
| Size | 11.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fb2d4c42da9ea16ffa86529f8f4ee2a438ce32319ca8e8b4285c0818d3445f35
|
|
BLAKE2b-256 checksum How to use checksums |
a17a74db7f494cd206a9f0e6ecea12b3c389100351294743522764e5f75b5f18
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
|
Release files / torch_tda-0.0.1-py3-none-any.whl
| Download URL | torch_tda-0.0.1-py3-none-any.whl |
|---|---|
| Size | 12.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
df3704f2d30a235f44f83b98fe3bcef7d6ee6b341e14dc1dc5ac0fda075a491b
|
|
BLAKE2b-256 checksum How to use checksums |
058db5418dc826bbb68922f273f372605dce6552d1d3f257f334382d61967464
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
|
Security for torch-tda 0.0.1
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.