Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.pad.base
Commits
6573130e
Commit
6573130e
authored
Mar 06, 2018
by
Olegs NIKISINS
Browse files
Merge branch 'small_fixe' into 'master'
Avoids feature blow-up when std==0. See merge request
!35
parents
d006acdc
d83cccba
Pipeline
#17372
passed with stages
in 22 minutes and 21 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bob/pad/base/utils/helper_functions.py
View file @
6573130e
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment