Automatic differentiation for topological data analysis
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file torch-tda-0.0.1.tar.gz
.
File metadata
- Download URL: torch-tda-0.0.1.tar.gz
- Upload date:
- Size: 11.0 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb2d4c42da9ea16ffa86529f8f4ee2a438ce32319ca8e8b4285c0818d3445f35 |
|
MD5 | 208fbc7d7cdeeb1297bb531650f3b1ec |
|
BLAKE2b-256 | a17a74db7f494cd206a9f0e6ecea12b3c389100351294743522764e5f75b5f18 |
File details
Details for the file torch_tda-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: torch_tda-0.0.1-py3-none-any.whl
- Upload date:
- Size: 12.7 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | df3704f2d30a235f44f83b98fe3bcef7d6ee6b341e14dc1dc5ac0fda075a491b |
|
MD5 | db09af3b8f1ab07d446f01a72777888f |
|
BLAKE2b-256 | 058db5418dc826bbb68922f273f372605dce6552d1d3f257f334382d61967464 |