Generate random samples from the fitted Gaussian distribution.
- Parameters:
- n_samples
int
, default=1 Number of samples to generate.
- Returns:
- X
array
, shape
(n_samples
, n_features
) Randomly generated sample.
- y
array
, shape
(nsamples,) Component labels.