Skip to main content

Topology data analysis routines

Project description

topologyx

Topology Data Analysis Routines

Report Bug

Table of Contents

  1. About TopologyX
  2. Built With
  3. Get Started

About TopologyX

Topological Data Analysis, also abbreviated TDA, is a recent field that emerged from various works in applied topology and computational geometry. It aims at providing well-founded mathematical, statistical, and algorithmic methods to exploit the topological and underlying geometric structures in data. My aim is to develop some tools in this repository that may be applied to data science in general. Some of them have already proven useful for classification tasks.

Read more about applied TDA:

Built With

Get Started

pip install topologyx
# or using `poetry`
poetry add topologyx

How To Use

from topologyx.filtrations import Filtration

filtration = Filtration(data, use_alpha=False)
filtration.build_persistence_diagram(filtration_type=FiltrationType.SIMPLE, dimension=0)
from topologyx.clustering import TomatoClustering

tomato = TomatoClustering(data)
_ = tomato.estimate_clusters(visualize=True)
_ = tomato.fit_predict(n_clusters=3, visualize=True)

Local Installation

git clone https://github.com/merylldindin/topologyx
# install dependencies via `poetry`
make install

Using Notebooks

ipykernel comes out of the box with our dependencies, so you can directly use the notebooks provided in the examples folder. I use VSCode as engine for my jupyter notebooks.

Tutorial: Filtration of a 3D shape: This notebook gives a simple example of how to handle three-dimensional shapes. The whole example is based on the height as filtration function, so not invariant in space. However, it gives a pretty good idea of what the output of a topological analysis may give.

Tutorial: ToMaTo clustering: This notebook rather focus on a specific strength of TDA: its robustness to detect centroids in dataset, along with its ability to record the relationships between each point, enabling us to retrace the whole structure of the centroids. Examples are provided in the notebook.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

topologyx-1.0.0.tar.gz (15.0 kB view details)

Uploaded Source

Built Distribution

topologyx-1.0.0-py3-none-any.whl (15.7 kB view details)

Uploaded Python 3

File details

Details for the file topologyx-1.0.0.tar.gz.

File metadata

  • Download URL: topologyx-1.0.0.tar.gz
  • Upload date:
  • Size: 15.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.7 Darwin/23.5.0

File hashes

Hashes for topologyx-1.0.0.tar.gz
Algorithm Hash digest
SHA256 04cac250be917ca1767baafd49e63320cec3d8e26c2e1b4a25e3697ee1ff5f9e
MD5 9304b2d9968eed90b09edc742f9257cf
BLAKE2b-256 c462542012160e3a75a725057fc2c34ecde56dfc856b26be6ff1450aab7715f9

See more details on using hashes here.

File details

Details for the file topologyx-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: topologyx-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 15.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.7 Darwin/23.5.0

File hashes

Hashes for topologyx-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2abc119543278a5bbadab57b137b07136f9b1a6cba1fe125c550857dc6af3e4f
MD5 54e41d12d7a96c4270e2093a7c2bf0a1
BLAKE2b-256 0d9e26e3af0468012ae9b5ae6d97912b811ea1ca0d713ef37ffbb7851bd2a964

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page