GaussianMixtureDataset
Methods and Attributes¶
Bases: BaseSyntheticDataset
Generates samples from a 2D Gaussian mixture arranged uniformly in a circle.
Creates a mixture of Gaussian distributions with centers equally spaced on a circle. This distribution is useful for testing mode-seeking behavior in energy-based models.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
n_samples
|
int
|
Total number of samples to generate. |
2000
|
n_components
|
int
|
Number of Gaussian components (modes). Default: 8. |
8
|
std
|
float
|
Standard deviation of each Gaussian component. Default: 0.05. |
0.05
|
radius
|
float
|
Radius of the circle on which the centers lie. Default: 1.0. |
1.0
|
device
|
Optional[Union[str, device]]
|
Device for the tensor. |
None
|
dtype
|
dtype
|
Data type for the tensor. Default: torch.float32. |
float32
|
seed
|
Optional[int]
|
Random seed for reproducibility. |
None
|