Python implementation persistent images representation of persistence diagrams.
Project description
Persim 
Persim is a Python implementation of Persistence Images as first introduced in https://arxiv.org/abs/1507.06217.
It is designed to interface with Ripser, though any persistence diagram should work fine.
Setup
Currently, the only option is to install the library from source:
pip install persim
Usage
First, construct a diagram. In this example, we will use Ripser.
import numpy as np
from ripser import Rips
data = np.random.random((100,2))
rips = Rips()
dgm = rips.fit_transform(data)
diagram = dgm[1] # Just diagram for H1
Then from this diagram, we construct the persistence image
from persim import PersImage
pim = PersImage(diagram)
img = pim.transform()
pim.show(img)
TODO
- The API needs a little work, not quite sklearn compliant. Please do offer any suggestions.
- Implement more varieties of weighting and kernel functions.
- Build tests.
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
persim-0.0.4.tar.gz
(4.1 kB
view details)
Built Distribution
File details
Details for the file persim-0.0.4.tar.gz
.
File metadata
- Download URL: persim-0.0.4.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
d9e7646e4ed374752e157ac97376103f3617d7cc6e3f30d07eee8c59f5e27bf1
|
|
MD5 |
0db7c430053772efa293cf5e71bdbbeb
|
|
BLAKE2b-256 |
f79e081f3ade4b44a3ea6ca8b82b1ad835785e96a5f066f2e01fe4757b7f7c84
|
File details
Details for the file persim-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: persim-0.0.4-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
3c16332fac857bb163f59005f3a9006e61485d5e577b5c52fb435d88b36c2c6b
|
|
MD5 |
e8ed95346aeb7728b0b255182cec67b8
|
|
BLAKE2b-256 |
b3fb8167d1092ca1654a2c6b455b390bf3af4037940f3d84661601290c0a63ba
|