Skip to main content
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 with uv
uv add topologyx

How To Use

from topologyx.filtrations import Filtration, FiltrationType

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
make setup

Using Examples

Examples are provided as Marimo notebooks - reactive Python notebooks that are git-friendly (pure .py files). Launch the example server with:

make marimo

Filtration of a 3D shape: examples/filtrations.py demonstrates how to handle three-dimensional shapes using height as a filtration function, showing persistence diagrams, Betti curves, and persistence landscapes.

ToMaTo clustering: examples/clustering.py showcases TDA's strength for clustering - detecting centroids and recording relationships between points across various data distributions.

Metadata

Release files for topologyx 1.3.0

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

Source distribution (sdist)

Source distribution for topologyx 1.3.0
File Size Uploaded Provenance Actions
topologyx-1.3.0.tar.gz 2.0 MB Without provenance Details for topologyx-1.3.0.tar.gz

Built distribution (wheel)

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

Total release size: 2.0 MB

Release files / topologyx-1.3.0.tar.gz

Download URL topologyx-1.3.0.tar.gz
Size 2.0 MB
Tags Source
SHA-256 checksum
How to use checksums
943fc5799a4f18c3c1da2a7fb6c4b982a4ab872935fa2e5edbb5a38b4dfdae24
BLAKE2b-256 checksum
How to use checksums
176fd6085d435d9f5706502a3531b983b173a735511172108dbb9babebb0fbaa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / topologyx-1.3.0-py3-none-any.whl

Download URL topologyx-1.3.0-py3-none-any.whl
Size 16.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
29db0fa941cff9732046b7ad2cf22281f77fceec809c17b2df3172f29e2d13ed
BLAKE2b-256 checksum
How to use checksums
646668b9c4861dfeaf29720b85832813b6f0213db11675395f3113bd0a5fcb1f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for topologyx 1.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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