Commit 708761b2 authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #6253 from berak:patch-1

parents 4f9e1a9a 4555f9ac
......@@ -153,7 +153,7 @@ void SVMSGDImpl::normalizeSamples(Mat &samples, Mat &average, float &multiplier)
double normValue = norm(samples);
multiplier = static_cast<float>(sqrt(samples.total()) / normValue);
multiplier = static_cast<float>(sqrt(static_cast<double>(samples.total())) / normValue);
samples *= multiplier;
}
......
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