Skip to content

Commit 911d869

Browse files
authored
Merge pull request #99 from lucasimi/develop
Develop
2 parents dc36cdb + c605a78 commit 911d869

File tree

12 files changed

+1179
-74
lines changed

12 files changed

+1179
-74
lines changed

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@
55
[![docs](https://readthedocs.org/projects/tda-mapper/badge/?version=main)](https://tda-mapper.readthedocs.io/en/main/?badge=main)
66
[![codecov](https://codecov.io/github/lucasimi/tda-mapper-python/graph/badge.svg?token=FWSD8JUG6R)](https://codecov.io/github/lucasimi/tda-mapper-python)
77
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.10642381.svg)](https://doi.org/10.5281/zenodo.10642381)
8+
[![Streamlit App](https://static.streamlit.io/badges/streamlit_badge_black_white.svg)](https://tda-mapper-app.streamlit.app/)
89

9-
# tda-mapper
10-
11-
A simple and efficient Python implementation of Mapper algorithm for Topological Data Analysis
10+
**tda-mapper** is a simple and efficient Python implementation of Mapper algorithm for Topological Data Analysis
1211

1312
* **Installation**: `pip install tda-mapper`
1413

@@ -19,7 +18,7 @@ Mapper is used in various fields such as machine learning, data mining, and soci
1918
For an in-depth coverage of Mapper you can read [the original paper](https://research.math.osu.edu/tgda/mapperPBG.pdf).
2019

2120
| Step 1 | Step 2 | Step 3 | Step 4 |
22-
|--------|--------|--------|--------|
21+
| ------ | ------ | ------ | ------ |
2322
| ![Step 1](https://github.com/lucasimi/tda-mapper-python/raw/main/resources/mapper_1.png) | ![Step 2](https://github.com/lucasimi/tda-mapper-python/raw/main/resources/mapper_2.png) | ![Step 3](https://github.com/lucasimi/tda-mapper-python/raw/main/resources/mapper_3.png) | ![Step 2](https://github.com/lucasimi/tda-mapper-python/raw/main/resources/mapper_4.png) |
2423
| Chose lens | Cover image | Run clustering | Build graph |
2524

@@ -78,8 +77,8 @@ fig_std = mapper_plot.plot()
7877
fig_std.show(config={'scrollZoom': True})
7978
```
8079

81-
| Dataset | Mapper graph (average) | Mapper graph (deviation) |
82-
|--------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------|
80+
| Dataset | Mapper graph (average) | Mapper graph (deviation) |
81+
| ------- | ---------------------- | ------------------------ |
8382
| ![Dataset](https://github.com/lucasimi/tda-mapper-python/raw/main/resources/circles_dataset.png) | ![Mapper graph (average)](https://github.com/lucasimi/tda-mapper-python/raw/main/resources/circles_mean.png) | ![Mapper graph (standard deviation)](https://github.com/lucasimi/tda-mapper-python/raw/main/resources/circles_std.png) |
8483

8584
More examples can be found in the documentation https://tda-mapper.readthedocs.io/en/main/.

docs/source/citations.rst

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
Citations
2+
=========
3+
4+
If you want to use **tda-mapper** in your research please use one of the following citation.
5+
For the methodology you can use:
6+
7+
Simi, L. (2024). A Scalable Implementation of Mapper for Topological Data Analysis via Vantage Point Trees. Zenodo. https://doi.org/10.5281/zenodo.10659652
8+
9+
BibTeX entry:
10+
11+
.. code:: RST
12+
13+
@misc{simi_2024_10659652,
14+
author = {Simi, Luca},
15+
title = {A Scalable Implementation of Mapper for Topological Data Analysis via Vantage Point Trees},
16+
month = feb,
17+
year = 2024,
18+
publisher = {Zenodo},
19+
doi = {10.5281/zenodo.10659652},
20+
url = {https://doi.org/10.5281/zenodo.10659652}
21+
}
22+
23+
If you want to refer to the actual library instead, you can reference the Zenodo
24+
archive `https://doi.org/10.5281/zenodo.10642381 <https://doi.org/10.5281/zenodo.10642381>`__.
25+
In the archive you can find a permanent reference to the exact version used in your work.

docs/source/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
html_theme = 'sphinx_rtd_theme'
2626
html_static_path = ['_static']
27+
html_logo = 'logos/tda-mapper-logo-horizontal.png'
2728

2829
html_theme_options = {
2930
'sticky_navigation': True,

docs/source/examples.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
Examples
2+
========
3+
4+
.. toctree::
5+
:maxdepth: 2
6+
7+
notebooks/circles_online
8+
notebooks/digits_online
9+
10+
.. |Dataset| image:: https://github.com/lucasimi/tda-mapper-python/raw/main/resources/circles_dataset.png
11+
.. |Mapper graph (average)| image:: https://github.com/lucasimi/tda-mapper-python/raw/main/resources/circles_mean.png
12+
.. |Mapper graph (standard deviation)| image:: https://github.com/lucasimi/tda-mapper-python/raw/main/resources/circles_std.png

docs/source/index.rst

Lines changed: 16 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -3,73 +3,28 @@
33
You can adapt this file completely to your liking, but it should at least
44
contain the root `toctree` directive.
55
6-
|PyPI version| |downloads| |test| |deploy| |docs| |codecov| |DOI|
7-
8-
tda-mapper
9-
==========
10-
11-
A simple and efficient implementation of Mapper algorithm for
12-
Topological Data Analysis.
13-
14-
- **Installation**: ``pip install tda-mapper``
6+
########################
7+
tda-mapper documentation
8+
########################
159

16-
- **Documentation**: https://tda-mapper.readthedocs.io/en/main/
17-
18-
The Mapper algorithm is a well-known technique in the field of
19-
topological data analysis that allows data to be represented as a graph.
20-
Mapper is used in various fields such as machine learning, data mining,
21-
and social sciences, due to its ability to preserve topological features
22-
of the underlying space, providing a visual representation that
23-
facilitates exploration and interpretation. For an in-depth coverage of
24-
Mapper you can read `the original
25-
paper <https://research.math.osu.edu/tgda/mapperPBG.pdf>`__.
26-
27-
+-----------------+-----------------+-----------------+-----------------+
28-
| Step 1 | Step 2 | Step 3 | Step 4 |
29-
+=================+=================+=================+=================+
30-
| |Step 1| | |Step 2| | |Step 3| | |image1| |
31-
+-----------------+-----------------+-----------------+-----------------+
32-
33-
.. toctree::
34-
:maxdepth: 2
35-
:caption: Examples
10+
|Logo|
3611

37-
notebooks/circles_online
38-
notebooks/digits_online
39-
40-
Citations
41-
^^^^^^^^^
42-
43-
To cite **tda-mapper** in your work you can use the Zenodo archive
44-
`https://doi.org/10.5281/zenodo.10642381 <https://doi.org/10.5281/zenodo.10642381>`__.
45-
In the archive you can find a permanent reference to the exact version
46-
you used in your work. For example, to cite version ``v0.4.0`` you can use:
47-
48-
::
49-
50-
Simi, L. (2024). tda-mapper (v0.4.0). Zenodo. https://doi.org/10.5281/zenodo.10655755
51-
52-
BibTeX entry:
53-
54-
::
12+
|PyPI version| |downloads| |test| |deploy| |docs| |codecov| |DOI|
5513

56-
@software{tda-mapper_v0.4.0,
57-
author = {Simi, Luca},
58-
title = {tda-mapper},
59-
month = feb,
60-
year = 2024,
61-
publisher = {Zenodo},
62-
version = {v0.4.0},
63-
doi = {10.5281/zenodo.10655755},
64-
url = {https://doi.org/10.5281/zenodo.10655755}
65-
}
14+
Contents
15+
========
6616

6717
.. toctree::
68-
:maxdepth: 2
69-
:caption: API Reference
18+
:maxdepth: 1
7019

71-
tdamapper
20+
overview
21+
examples
22+
citations
23+
modules
7224

25+
.. |Logo| image:: logos/tda-mapper-logo-horizontal.png
26+
:alt: tda-mapper
27+
:target: https://github.com/lucasimi/tda-mapper-python
7328
.. |PyPI version| image:: https://badge.fury.io/py/tda-mapper.svg
7429
:target: https://badge.fury.io/py/tda-mapper
7530
.. |downloads| image:: https://img.shields.io/pypi/dm/tda-mapper
@@ -83,11 +38,4 @@ BibTeX entry:
8338
.. |codecov| image:: https://codecov.io/github/lucasimi/tda-mapper-python/graph/badge.svg?token=FWSD8JUG6R
8439
:target: https://codecov.io/github/lucasimi/tda-mapper-python
8540
.. |DOI| image:: https://zenodo.org/badge/DOI/10.5281/zenodo.10642381.svg
86-
:target: https://doi.org/10.5281/zenodo.10642381
87-
.. |Step 1| image:: https://github.com/lucasimi/tda-mapper-python/raw/main/resources/mapper_1.png
88-
.. |Step 2| image:: https://github.com/lucasimi/tda-mapper-python/raw/main/resources/mapper_2.png
89-
.. |Step 3| image:: https://github.com/lucasimi/tda-mapper-python/raw/main/resources/mapper_3.png
90-
.. |image1| image:: https://github.com/lucasimi/tda-mapper-python/raw/main/resources/mapper_4.png
91-
.. |Dataset| image:: https://github.com/lucasimi/tda-mapper-python/raw/main/resources/circles_dataset.png
92-
.. |Mapper graph (average)| image:: https://github.com/lucasimi/tda-mapper-python/raw/main/resources/circles_mean.png
93-
.. |Mapper graph (standard deviation)| image:: https://github.com/lucasimi/tda-mapper-python/raw/main/resources/circles_std.png
41+
:target: https://doi.org/10.5281/zenodo.10642381
13.7 KB
Loading
2.33 KB
Loading
29 KB
Loading

0 commit comments

Comments
 (0)