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

snapshot...

parent 11dd86e2
No related branches found
No related tags found
No related merge requests found
......@@ -383,7 +383,7 @@ def make_histogram(values, edges):
return h
def normalize(data, param, mean_std_dict, add_noise=False, noise_scale=1.0, seed=None):
def normalize(data, param, mean_std_dict, add_noise=False, noise_scale=0.01, seed=None):
if mean_std_dict.get(param) is None:
return data
......@@ -398,7 +398,8 @@ def normalize(data, param, mean_std_dict, add_noise=False, noise_scale=1.0, seed
if add_noise:
if seed is not None:
np.random.seed(seed)
rnd = np.random.normal(loc=0, scale=noise_scale, size=data.size)
rnd = np.random.normal(loc=0, size=data.size)
rnd *= noise_scale
data += rnd
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