tadasets.sphere

tadasets.sphere(n=100, r=1, noise=None, ambient=None, seed=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.

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