tadasets.eyeglasses(n: int = 100, r1: float = 1.0, r2: float | None = None, neck_size: float | None = None, noise: float | None = None, ambient: int | None = None, seed: float | None = None) ndarray[source]

Sample n points on an eyeglasses shape.

  • n (int, default=100) – Number of points in shape

  • r1 (float, default=1.0) – The radius of the left half of the eyeglasses shape

  • r2 (float, optional) – The radius of the right half. If None, it is equal to r1.

  • neck_size (float, optional) – The width of the neck.

  • noise (float, optional) – Standard deviation of normally distributed noise added to data.

  • ambient (int, optional) – Embed the eyeglasses shape into a space with ambient dimension equal to ambient. The eyeglasses shape is randomly rotated in this high dimensional space.

  • seed (int, optional) – Seed for random state.


data (np.ndarray) – An (n,ambient) np.ndarray if ambient is specified or an (n,2) np.ndarray otherwise.