GaussianMixture.sample¶
- GaussianMixture.sample(num_datapoints)[source]¶
Samples datapoints from the fitted Gaussian mixture.
- Parameters:
num_datapoints (
int
) -- The number of datapoints to sample.- Return type:
- Returns:
A tensor of shape
[num_datapoints, dim]
providing the samples.
Note
This method does not parallelize across multiple processes, i.e. performs no synchronization.