tadasets.swiss_roll

tadasets.swiss_roll(n=100, r=10, noise=None, ambient=None, seed=None)[source]

Swiss roll implementation

Parameters
  • n (int) – Number of data points in shape.

  • r (float) – Length of roll

  • ambient (int, default=None) – Embed the swiss roll into a space with ambient dimension equal to ambient. The swiss roll is randomly rotated in this high dimensional space.

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

References

Equations mimic [Swiss Roll and SNE by jlmelville](https://jlmelville.github.io/smallvis/swisssne.html)