Science Score: 41.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
○codemeta.json file
-
○.zenodo.json file
-
✓DOI references
Found 2 DOI reference(s) in README -
✓Academic publication links
Links to: arxiv.org, zenodo.org -
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (11.6%) to scientific vocabulary
Last synced: 10 months ago
·
JSON representation
·
Repository
Persistence Mayer Vietoris spectral sequence
Basic Info
- Host: GitHub
- Owner: atorras1618
- License: mit
- Language: Python
- Default Branch: master
- Size: 10.2 MB
Statistics
- Stars: 13
- Watchers: 5
- Forks: 3
- Open Issues: 1
- Releases: 0
Created over 6 years ago
· Last pushed over 3 years ago
Metadata Files
Readme
License
Citation
README.rst
.. image:: https://github.com/atorras1618/permaviss/workflows/CI/CD/badge.svg
:target: https://github.com/atorras1618/PerMaViss/actions?query=workflow%3ACI%2FCD+branch%3Amaster
.. image:: https://readthedocs.org/projects/permaviss/badge/?version=latest
:target: https://permaviss.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status
.. image:: https://travis-ci.org/atorras1618/PerMaViss.svg?branch=master
:target: https://travis-ci.org/atorras1618/PerMaViss
.. image:: https://coveralls.io/repos/github/atorras1618/PerMaViss/badge.svg?branch=master
:target: https://coveralls.io/github/atorras1618/PerMaViss?branch=master
.. image:: https://zenodo.org/badge/222728935.svg
:target: https://zenodo.org/badge/latestdoi/222728935
.. image:: https://mybinder.org/badge_logo.svg
:target: https://mybinder.org/v2/gh/atorras1618/PerMaViss/HEAD
PerMaViss
*********
Welcome to PerMaViss! This is a Python3 implementation of the Persistence Mayer Vietoris spectral sequence.
For full documentation, visit `this page `_.
For a mathematical description of the procedure, see `Distributing Persistent Homology via Spectral Sequences `_.
In a nutshell, this library is intended to be a `proof of concept` for persistence homology parallelization. That is, one can divide a point cloud into covering regions, compute persistent homology on each part, and combine all results to obtain the global persistent homology again. This is done by means of the Persistence Mayer Vietoris spectral sequence. Here we present two examples, the torus and random point clouds in three dimensions. Both of these are divided into `8` mutually overlapping regions, and the spectral sequence is computed with respect to this cover. The resulting barcodes coincide with that which would be obtained by computing persistent homology directly.
This implementation is more of a `prototype` than a finished program. As such, it still needs to be optimized. Also, it would be great to have more examples for different covers. Additionally, it would be interesting to also have an implementation for cubical, alpha, and other complexes. Any collaboration or suggestion will be welcome!
.. image:: docs/examples/TorusExtension.png
:width: 700
:align: center
.. image:: docs/examples/torusRep0.png
:width: 250
.. image:: docs/examples/torusRep1.png
:width: 250
.. image:: docs/examples/torusRep2.png
:width: 250
.. image:: docs/examples/torusRep3.png
:width: 250
.. image:: docs/examples/torusRep4.png
:width: 250
Dependencies
============
PerMaViss requires:
- Python3
- NumPy
- Scipy
Optional for examples and notebooks:
- Matplotlib
- mpl_toolkits
Installation
============
Permaviss is built on Python 3, and relies only on `NumPy `_ and `Scipy `_.
Additionally, `Matplotlib `_ and `mpl_toolkits `_ are used for the tutorials.
To install using :code:`pip3`::
$ pip3 install permaviss
If you prefer to install from source, clone from GitHub repository::
$ git clone https://github.com/atorras1618/PerMaViss
$ cd PerMaViss
$ pip3 install -e .
Quickstart
==========
The main function which we use is `permaviss.spectral_sequence.MV_spectral_seq.create_MV_ss`.
We start by taking 100 points in a noisy circle of radius 1
>>> from permaviss.sample_point_clouds.examples import random_circle
>>> point_cloud = random_circle(100, 1, epsilon=0.2)
Now we set the parameters for spectral sequence. These are
- a prime number `p`,
- the maximum dimension of the Rips Complex `max_dim`,
- the maximum radius of filtration `max_r`,
- the number of divisions `max_div` along the maximum range in `point_cloud`,
- and the `overlap` between different covering regions.
In our case, we set the parameters to cover our circle with 9 covering regions.
Notice that in order for the algorithm to give the correct result we need `overlap > max_r`.
>>> p = 3
>>> max_dim = 3
>>> max_r = 0.2
>>> max_div = 3
>>> overlap = max_r * 1.01
Then, we compute the spectral sequence, notice that the method prints the successive page ranks.
>>> from permaviss.spectral_sequence.MV_spectral_seq import create_MV_ss
>>> MV_ss = create_MV_ss(point_cloud, max_r, max_dim, max_div, overlap, p)
PAGE: 1
[[ 0 0 0 0 0]
[ 7 0 0 0 0]
[133 33 0 0 0]]
PAGE: 2
[[ 0 0 0 0 0]
[ 7 0 0 0 0]
[100 0 0 0 0]]
PAGE: 3
[[ 0 0 0 0 0]
[ 7 0 0 0 0]
[100 0 0 0 0]]
PAGE: 4
[[ 0 0 0 0 0]
[ 7 0 0 0 0]
[100 0 0 0 0]]
We can inspect the obtained barcodes on the 1st dimension.
>>> MV_ss.persistent_homology[1].barcode
array([[ 0.08218822, 0.09287436],
[ 0.0874977 , 0.11781674],
[ 0.10459203, 0.12520266],
[ 0.14999507, 0.18220508],
[ 0.15036084, 0.15760192],
[ 0.16260913, 0.1695936 ],
[ 0.16462541, 0.16942819]])
Notice that in this case, there was no need to solve the extension problem. See the examples folder for nontrivial extensions.
DISCLAIMER
==========
**The main purpose of this library is to explore how the Persistent Mayer Vietoris
**This library is still on development. If you notice any issues, please email
TorrasCasasA@cardiff.ac.uk**
**This library is published under the standard MIT licence. Thus:
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.**
How to cite
===========
Álvaro Torras Casas. (2021). PerMaViss: Persistence Mayer Vietoris spectral sequence (v0.2). Zenodo. https://doi.org/10.5281/zenodo.5266475
Reference
=========
This module is written using the algorithm in `Distributing Persistent Homology via Spectral Sequences `_.
Owner
- Name: Álvaro Torras Casas
- Login: atorras1618
- Kind: user
- Location: ABACWS building, Senghenydd Rd, Cardiff, UK
- Company: Cardiff University
- Website: https://alvaro-torras-casas.org/
- Repositories: 2
- Profile: https://github.com/atorras1618
Álvaro Torras Casas
Citation (CITATION.rst)
Please use the following to cite the latest version of PerMaViss::
@misc{permaviss,
author = \'Alvaro Torras Casas,
title = {PerMaViss:<RELEASE TITLE>},
year = 2021,
doi = {<DOI INFORMATION>},
url = {http://doi.org/10.5281/zenodo.<DOI NUMBER>}
}
To check the details (RELEASE TITLE, DOI INFORMATION and DOI NUMBER) please view
the Zenodo page for the project.
.. image:: https://zenodo.org/badge/222728935.svg
:target: https://zenodo.org/badge/latestdoi/222728935
GitHub Events
Total
Last Year
Committers
Last synced: over 3 years ago
All Time
- Total Commits: 114
- Total Committers: 3
- Avg Commits per committer: 38.0
- Development Distribution Score (DDS): 0.035
Top Committers
| Name | Commits | |
|---|---|---|
| Álvaro Torras Casas | a****8@g****m | 110 |
| atorras1618 | 4****8@u****m | 3 |
| Umberto Lupo | 4****o@u****m | 1 |
Issues and Pull Requests
Last synced: 11 months ago
All Time
- Total issues: 0
- Total pull requests: 2
- Average time to close issues: N/A
- Average time to close pull requests: about 1 hour
- Total issue authors: 0
- Total pull request authors: 1
- Average comments per issue: 0
- Average comments per pull request: 0.0
- Merged pull requests: 1
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
- ulupo (2)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- pypi 31 last-month
- Total dependent packages: 0
- Total dependent repositories: 1
- Total versions: 2
- Total maintainers: 1
pypi.org: permaviss
Persistence Mayer Vietoris spectral sequence
- Homepage: https://github.com/atorras1618/PerMaViss
- Documentation: https://permaviss.readthedocs.io/
- License: MIT
-
Latest release: 0.0.2
published over 6 years ago
Rankings
Dependent packages count: 10.0%
Stargazers count: 15.2%
Forks count: 16.8%
Average: 21.1%
Dependent repos count: 21.7%
Downloads: 41.9%
Maintainers (1)
Last synced:
11 months ago
Dependencies
docs/requirements.txt
pypi
- sphinxcontrib-napoleon *
requirements.txt
pypi
- numpy *
- scipy *