mirror of https://github.com/davisking/dlib.git
Added missing std:: qualifier.
--HG-- extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402890
This commit is contained in:
parent
ed52af2229
commit
d35d27bf0f
|
@ -156,7 +156,7 @@ namespace dlib
|
|||
w.train(x, 1 - learning_rate*lambda, y*learning_rate);
|
||||
|
||||
scalar_type wnorm = std::sqrt(w.squared_norm());
|
||||
scalar_type temp = (1/sqrt(lambda))/(wnorm);
|
||||
scalar_type temp = (1/std::sqrt(lambda))/(wnorm);
|
||||
if (temp < 1)
|
||||
w.scale_by(temp);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue