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

Sample n data points on a torus.

  • 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.