Commit 23e53a32 authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #7950 from BadrinathS:firstbugfix-lr_opencv

parents 31534507 d1f72719
...@@ -311,7 +311,7 @@ Mat LogisticRegressionImpl::calc_sigmoid(const Mat& data) const ...@@ -311,7 +311,7 @@ Mat LogisticRegressionImpl::calc_sigmoid(const Mat& data) const
double LogisticRegressionImpl::compute_cost(const Mat& _data, const Mat& _labels, const Mat& _init_theta) double LogisticRegressionImpl::compute_cost(const Mat& _data, const Mat& _labels, const Mat& _init_theta)
{ {
int llambda = 0; float llambda = 0; /*changed llambda from int to float to solve issue #7924*/
int m; int m;
int n; int n;
double cost = 0; double cost = 0;
......
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