Reference

tadasets.sphere(n=100, r=1, ambient=None)[source]
Sample n data points on a sphere.
Parameters:
n : int

Number of data points in shape.

r : float

Radius of sphere.

ambient : int, default=None

Embed the sphere into a space with ambient dimension equal to ambient. The sphere is randomly rotated in this high dimensional space.

tadasets.torus(n=100, c=2, a=1, ambient=None)[source]

Sample n data points on a torus.

Parameters:
n : int

Number of data points in shape.

c : float

Distance from center to center of tube.

a : float

Radius of tube.

ambient : int, default=None

Embed the torus into a space with ambient dimension equal to ambient. The torus is randomly rotated in this high dimensional space.

tadasets.swiss_roll(n=100, r=10, ambient=None)[source]

Swiss roll implementation

Parameters:
n : int

Number of data points in shape.

r : float

Length of roll

ambient : int, default=None

Embed the swiss roll into a space with ambient dimension equal to ambient. The swiss roll is randomly rotated in this high dimensional space.

References

Equations mimic [Swiss Roll and SNE by jlmelville](https://jlmelville.github.io/smallvis/swisssne.html)

tadasets.embed(data, ambient=50)[source]

Embed data in ambient dimensions, regardless of dimensionality of data.