A Lean Persistent Homology Library for Python
Project description
Ripser
Ripser is now a Python class. It is easy to install, only requires that you have Cython installed first. It is even easier to use.
For the C++ library, see Ripser/ripser.
Details from the old readme can be found here.
Setup
Installation requires Cython, and currently must be installed from source. An example of how to install is
pip install Cython
pip install Ripser
We use matplotlib for generating persistence diagrams
Usage
import numpy as np
from ripser import ripser, plot_dgms
data = np.random.random((100,2))
diagrams = ripser(data)['dgms']
plot_dgms(diagrams, show=True)
Note that there is also a Rips object with the same functionality, which conforms to the Scikit-learn style
import numpy as np
from ripser import Rips
r = Rips()
data = np.random.random((100,2))
diagram = r.fit_transform(data)
r.plot(diagram, show=True)
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
ripser-0.2.4.tar.gz
(67.0 kB
view hashes)
Built Distributions
ripser-0.2.4-py3.6-win-amd64.egg
(62.1 kB
view hashes)
ripser-0.2.4-py3.6-win32.egg
(67.7 kB
view hashes)
ripser-0.2.4-py3.5-win-amd64.egg
(62.2 kB
view hashes)
ripser-0.2.4-py3.5-win32.egg
(67.8 kB
view hashes)
ripser-0.2.4-cp36-cp36m-win32.whl
(60.8 kB
view hashes)
ripser-0.2.4-cp35-cp35m-win32.whl
(60.8 kB
view hashes)
Close
Hashes for ripser-0.2.4-py3.6-win-amd64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | ece1c2bbb64bc89e711ac6a0e20b83f5638d25892f514f23581ba6a4b2b1dc0a |
|
MD5 | 6988de6553be017c2e4a10c6c2095bb7 |
|
BLAKE2b-256 | cf5bd34785e8fde0fc3f82c96cba3891f56a090c7fdb3a10a40429a69daaaf0b |
Close
Hashes for ripser-0.2.4-py3.5-win-amd64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1db923c322592699ef4b1a69d9654f5bfc025c7af6d0ee1c0b921b478075f6fa |
|
MD5 | 9590261df9b9cb4cdafe887de4d2fa36 |
|
BLAKE2b-256 | 86ffe9d6b7aadb48365a062e2862aafd91f15ba55dff8b38b93495c306afd7c3 |
Close
Hashes for ripser-0.2.4-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ebae247a59141878da7c1ec41b49512c6fd3d4a843f2438c8bb4605790a1423 |
|
MD5 | 28f7be3dfe75330f35ffbd654293c8ac |
|
BLAKE2b-256 | 860408f9b749576f16014c587d18c940a2250980f740ca062dd57a31c57dcb86 |
Close
Hashes for ripser-0.2.4-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37c8bab85f63df61d18f3b1bc923678292f61a1f5dfa45d6b29db8952e90d3cd |
|
MD5 | 69a6b5801636c2524513333e23f3e2c8 |
|
BLAKE2b-256 | 09f7dc92187699a3e868c22f4d79aaa62f7adae7686a56e0275f80fa9f9d5882 |
Close
Hashes for ripser-0.2.4-cp36-cp36m-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6edc4138a2aa4611486a788cbdbc40f9194461e0d3ada80e25a50b0d53576c7 |
|
MD5 | 91875f21210912556371e433cf0a397a |
|
BLAKE2b-256 | 1f3f5b67890637898114c2121207f1921e0dba5ec7087bea52a7dccf825677e3 |
Close
Hashes for ripser-0.2.4-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | afccd5f84abafc9b6061755543dc494d5c55522425cdff0e75f644cf07de3d30 |
|
MD5 | 1295e7a2dc6dd8f6638e4b5dbcba8a19 |
|
BLAKE2b-256 | 44af1210724ebcbf6f304b89dd4daa01d2b9a50f1bd62d6a48d78514df6c8949 |
Close
Hashes for ripser-0.2.4-cp35-cp35m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7e2edca12d2046f5e2d12474d66d154ab4ec67cff90b272cab9d03339673064 |
|
MD5 | 2d774d04eae8f322f4fda324a3807cde |
|
BLAKE2b-256 | c0b409f18dd2e85cbd58209a5d0a8e791556a3fa1f52e1f55182569dda0cf389 |