mirror of
https://github.com/opencv/opencv.git
synced 2025-01-07 19:54:18 +08:00
Added cast to float to remove warning
This commit is contained in:
parent
db78fcd11a
commit
d367e159c1
@ -303,7 +303,7 @@ float LogisticRegressionImpl::predict(InputArray samples, OutputArray results, i
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return ( pred_labs.empty() ? 0 : pred_labs.at< int >( 0 ) );
|
return ( pred_labs.empty() ? 0.f : (float) pred_labs.at< int >( 0 ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
Mat LogisticRegressionImpl::calc_sigmoid(const Mat& data) const
|
Mat LogisticRegressionImpl::calc_sigmoid(const Mat& data) const
|
||||||
|
Loading…
Reference in New Issue
Block a user