Skip to content
Snippets Groups Projects
Commit f56ccc37 authored by tomrink's avatar tomrink
Browse files

snapshot...

parent 9c658cde
Branches
No related tags found
No related merge requests found
......@@ -452,8 +452,7 @@ def normalize(data, param, mean_std_dict, add_noise=False, noise_scale=0.01, see
if add_noise:
if seed is not None:
np.random.seed(seed)
rnd = np.random.normal(loc=0, size=data.size)
rnd *= noise_scale
rnd = np.random.normal(loc=0, scale=noise_scale, size=data.size)
data += rnd
not_valid = np.isnan(data)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment