From d1f727191fbe44e8d260e93204e8886e52e065f2 Mon Sep 17 00:00:00 2001 From: BadrinathS Date: Sat, 31 Dec 2016 16:37:51 +0530 Subject: [PATCH] Resolving issue #7924 --- modules/ml/src/lr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ml/src/lr.cpp b/modules/ml/src/lr.cpp index 99692f3d16..57fcac7ef0 100644 --- a/modules/ml/src/lr.cpp +++ b/modules/ml/src/lr.cpp @@ -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) { - int llambda = 0; + float llambda = 0; /*changed llambda from int to float to solve issue #7924*/ int m; int n; double cost = 0;