noise
GlobalGaussianNoiseGenerator
Bases: NoiseGenerator
Source code in badgers/generators/time_series/noise.py
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
|
__init__(random_generator=default_rng(seed=0), noise_std=0.1)
:param random_generator: A random generator :param noise_std: The standard deviation of the noise to be added
Source code in badgers/generators/time_series/noise.py
63 64 65 66 67 68 69 70 |
|
generate(X, y, **params)
Add Gaussian white noise to the data.
the data is first standardized (each column has a mean = 0 and variance = 1).
The noise is generated from a normal distribution with standard deviation = noise_std
.
The noise is added to the data.
:param X: :return:
Source code in badgers/generators/time_series/noise.py
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
|
NoiseGenerator
Bases: GeneratorMixin
Base class for transformers that add noise to tabular data
Source code in badgers/generators/time_series/noise.py
10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
|
__init__(random_generator=default_rng(seed=0))
:param random_generator: A random generator
Source code in badgers/generators/time_series/noise.py
15 16 17 18 19 |
|