mirror of
https://github.com/opencv/opencv.git
synced 2024-12-12 23:49:36 +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
|
||||
|
Loading…
Reference in New Issue
Block a user