gaussian_z_noise
AddGaussianZNoise
Bases: BaseTransform
Applies independent Gaussian multiplicative noise to the z-coordinate of each node.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
std
|
float
|
The standard deviation of the noise coefficient. |
0.1
|
Example
transform = AddGaussianZNoise(std=0.1) data = transform(data)
Source code in src/torch_structure/transforms/gaussian_z_noise.py
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | |
forward(data)
Apply the multiplicative Gaussian z-noise to data.coords in place.
Source code in src/torch_structure/transforms/gaussian_z_noise.py
21 22 23 24 25 26 27 28 29 30 31 | |