Commit d83cccba authored by Anjith GEORGE's avatar Anjith GEORGE

Avoids feature blow-up when std==0.

parent d006acdc
Pipeline #17358 passed with stage
in 21 minutes and 46 seconds
......@@ -270,7 +270,9 @@ def mean_std_normalize(features,
features_mean = np.mean(features, axis=0)
features_std = np.std(features, axis=0)
features_std[features_std==0.0]=1.0
row_norm_list = []
for row in features: # row is a sample
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment