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

snapshot...

parent 9c658cde
No related branches found
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 ...@@ -452,8 +452,7 @@ def normalize(data, param, mean_std_dict, add_noise=False, noise_scale=0.01, see
if add_noise: if add_noise:
if seed is not None: if seed is not None:
np.random.seed(seed) np.random.seed(seed)
rnd = np.random.normal(loc=0, size=data.size) rnd = np.random.normal(loc=0, scale=noise_scale, size=data.size)
rnd *= noise_scale
data += rnd data += rnd
not_valid = np.isnan(data) not_valid = np.isnan(data)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment