Generate an S curve dataset.
Read more in the User Guide.
The number of sample points on the S curve.
The standard deviation of the gaussian noise.
Determines random number generation for dataset creation. Pass an int for reproducible output across multiple function calls. See Glossary.
The points.
The univariate position of the sample according to the main dimension of the points in the manifold.
>>> from sklearn.datasets import make_s_curve >>> X, t = make_s_curve(noise=0.05, random_state=0) >>> X.shape (100, 3) >>> t.shape (100,)
© 2007–2025 The scikit-learn developers
Licensed under the 3-clause BSD License.
https://scikit-learn.org/1.6/modules/generated/sklearn.datasets.make_s_curve.html