Skip to main content

Great data sets for Topological Data Analysis.

Project description

PyPI version PyPI - Downloads Codecov License: MIT

This package provides some nice utilities for creating and loading data sets that are useful for Topological Data Analysis. Currently, we provide various synthetic data sets with particular topological features.

Setup

Installation is as easy as

pip install tadasets

Usage

The shape constructors are exposed in a functional interface, each returning a numpy array containing data sampled on the object. Available objects include

  • torus
  • d-sphere
  • swiss roll
  • infinity sign
  • eyeglasses

Each shape can be embedded in arbitrary ambient dimension by supplying the ambient argument. Additionally, noise can be added to the shape through the noise argument.

import tadasets

torus = tadasets.torus(n=2000, c=2, a=1, ambient=200, noise=0.2)
swiss_roll = tadasets.swiss_roll(n=2000, r=4, ambient=10, noise=1.2)
dsphere = tadasets.dsphere(n=1000, d=12, r=3.14, ambient=14, noise=0.14)
infty_sign = tadasets.infty_sign(n=3000, noise=0.1)
eyeglasses = tadasets.eyeglasses(n=1000, r1=1, r2=2, neck_size=.5, noise=0.1, ambient=10)

Contributions

We welcome contributions of all shapes and sizes. There are lots of opportunities for potential projects, so please get in touch if you would like to help out. Everything from an implementation of your favorite distance, notebooks, examples, and documentation are all equally valuable so please don’t feel you can’t contribute.

If you have ideas for new shapes or features, please do suggest them in an issue and submit a pull request!

To contribute please fork the project make your changes and submit a pull request. We will do our best to work through any issues with you and get your code merged into the main branch.

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

tadasets-0.2.2.tar.gz (11.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tadasets-0.2.2-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file tadasets-0.2.2.tar.gz.

File metadata

  • Download URL: tadasets-0.2.2.tar.gz
  • Upload date:
  • Size: 11.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for tadasets-0.2.2.tar.gz
Algorithm Hash digest
SHA256 0be975f49d0f1e36539730215dba2389c68ecabfe08cdf1fb87edc2f26f8e3dc
MD5 2e5b3d49c113dab71b50521f2eae27a5
BLAKE2b-256 eb19ab52af65b21146a6eca2ffa53ca61ad3e06eb6a00726ef26ad598c30e95f

See more details on using hashes here.

Provenance

The following attestation bundles were made for tadasets-0.2.2.tar.gz:

Publisher: build_and_deploy.yml on scikit-tda/tadasets

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tadasets-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: tadasets-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for tadasets-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 35e6e70fb956c10a6ef2e9d892a9efb8678176b1c11d866d279a3253df94bbb6
MD5 06f2af2e075e5aad644e18b5b9074f4a
BLAKE2b-256 c3b849857de544ccd289015ddcb75f2fc2ab53aa1530acf6df8ae730c2111397

See more details on using hashes here.

Provenance

The following attestation bundles were made for tadasets-0.2.2-py3-none-any.whl:

Publisher: build_and_deploy.yml on scikit-tda/tadasets

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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