Skip to main content

Build Status codecov License: MIT

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.

Release files for persim 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for persim 0.0.4
File Size Uploaded
persim-0.0.4.tar.gz 4.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for persim 0.0.4
File Interpreter ABI Platform
persim-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 8.0 kB

Release files / persim-0.0.4.tar.gz

Download URL persim-0.0.4.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
d9e7646e4ed374752e157ac97376103f3617d7cc6e3f30d07eee8c59f5e27bf1
BLAKE2b-256 checksum
How to use checksums
f79e081f3ade4b44a3ea6ca8b82b1ad835785e96a5f066f2e01fe4757b7f7c84
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / persim-0.0.4-py3-none-any.whl

Download URL persim-0.0.4-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3c16332fac857bb163f59005f3a9006e61485d5e577b5c52fb435d88b36c2c6b
BLAKE2b-256 checksum
How to use checksums
b3fb8167d1092ca1654a2c6b455b390bf3af4037940f3d84661601290c0a63ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

0.3.8

2 release files

0.3.7

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.10

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

This release

0.0.4 This release

2 release files

0.0.3

2 release files

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page