mirror of
https://github.com/opencv/opencv.git
synced 2025-08-06 06:26:29 +08:00
Merge pull request #7950 from BadrinathS:firstbugfix-lr_opencv
This commit is contained in:
commit
23e53a32e5
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user