datasets中make_moons()函数:
(1)函数定义
Signature:
datasets.make_moons(
n_samples=100,
shuffle=True,
noise=None,
random_state=None,
)
Docstring:
Make two interleaving half circles
A simple toy dataset to visualize clustering and classification algorithms.
Parameters
----------
n_samples : int, optional (default=100)
The total number of points generated.
shuffle : bool, optional (default=True)
Whether to shuffle the samples.
noise : double or None (default=None)
Standard deviation of Gaussian noise added to the data.
random_state : int, RandomState instance or None (default)
Determines random number generation for dataset shuffling and noise.
Pass an int for reproducible output across multiple function calls.
See :term:`Glossary <random_state>`.
Returns
-------
X : array of shape [n_samples, 2]
The generated samples.