Great data sets for Topological Data Analysis.
Project description
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
Built Distribution
File details
Details for the file tadasets-0.2.1.tar.gz
.
File metadata
- Download URL: tadasets-0.2.1.tar.gz
- Upload date:
- Size: 10.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d66eaf9d090f26191f359689410d202bc63913762b356692d8d0ca997d9eba2 |
|
MD5 | 42edf910bee7402d3aaf5e0e356fe34f |
|
BLAKE2b-256 | 7d30a5574a4d7e26f2c98701e24af1653ab3cd203c49a861c04ecdd976aa7a55 |
File details
Details for the file tadasets-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: tadasets-0.2.1-py3-none-any.whl
- Upload date:
- Size: 9.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dbe1685e3bfda86f44e8fcbd2663984f947c2a5bcd9c00f24abb383e8eb78f2d |
|
MD5 | 6a12f98abe971519a6ae5895083f6db7 |
|
BLAKE2b-256 | 3c6d8bd97b4cee55305830b5c5d0121ff7a879597db755152b2d05ce4d7e92ff |