tadasets.dsphere

tadasets.dsphere(n=100, d=2, r=1, noise=None, ambient=None)[source]

Sample n data points on a d-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.