Generate isotropic Gaussian and label samples by quantile.
This classification dataset is constructed by taking a multi-dimensional standard normal distribution and defining classes separated by nested concentric multi-dimensional spheres such that roughly equal numbers of samples are in each class (quantiles of the \(\chi^2\) distribution).
Read more in the User Guide.
The mean of the multi-dimensional normal distribution. If None then use the origin (0, 0, …).
The covariance matrix will be this value times the unit matrix. This dataset only produces symmetric normal distributions.
The total number of points equally divided among classes.
The number of features for each sample.
The number of classes.
Shuffle the samples.
Determines random number generation for dataset creation. Pass an int for reproducible output across multiple function calls. See Glossary.
The generated samples.
The integer labels for quantile membership of each sample.
The dataset is from Zhu et al [1].
>>> from sklearn.datasets import make_gaussian_quantiles >>> X, y = make_gaussian_quantiles(random_state=42) >>> X.shape (100, 2) >>> y.shape (100,) >>> list(y[:5]) [np.int64(2), np.int64(0), np.int64(1), np.int64(0), np.int64(2)]
© 2007–2025 The scikit-learn developers
Licensed under the 3-clause BSD License.
https://scikit-learn.org/1.6/modules/generated/sklearn.datasets.make_gaussian_quantiles.html