Merge pull request #6253 from berak:patch-1

pull/6261/head
Alexander Alekhin 9 years ago
commit 708761b219
  1. 2
      modules/ml/src/svmsgd.cpp

@ -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;
}

Loading…
Cancel
Save