Skip to content

Commit 9fe2255

Browse files
Merge pull request rasmusbergpalm#24 from mohsenali/patch-1
Update nntrain.m
2 parents 0fb0762 + 8486d67 commit 9fe2255

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

NN/nntrain.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
if nn.normalize_input==1
1313
[x, mu, sigma] = zscore(x);
1414
nn.normalizeMean = mu;
15-
sigma(sigma==0) = 1;
15+
sigma(sigma==0) = 0.0001;%this should be very small value.
1616
nn.normalizeStd = sigma;
1717
end
1818

0 commit comments

Comments
 (0)