tadasets.torus

tadasets.torus(n=100, c=2, a=1, noise=None, ambient=None, seed=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.

  • seed (int, default=None) – Seed for random state.