SwissRollDataset
Methods and Attributes¶
Bases: BaseSyntheticDataset
Generates a 2D Swiss roll dataset.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
n_samples
|
int
|
Number of samples. Default: 2000. |
2000
|
noise
|
float
|
Standard deviation of Gaussian noise added. Default: 0.05. |
0.05
|
arclength
|
float
|
Controls how many rolls (pi*arclength). Default: 3.0. |
3.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
|