fixed warnings in type conversions
fixed warnings in type conversions from size_t to int (in getting size of number of unique classes in a training problem).
This commit is contained in:
parent
d20b2a5a97
commit
a23836231f
@ -125,7 +125,7 @@ bool LogisticRegression::train(cv::InputArray data_ip, cv::InputArray labels_ip)
|
||||
cv::Mat labels;
|
||||
|
||||
set_label_map(_labels_i);
|
||||
int num_classes = this->forward_mapper.size();
|
||||
int num_classes = (int) this->forward_mapper.size();
|
||||
|
||||
// add a column of ones
|
||||
cv::Mat data_t = cv::Mat::zeros(_data_i.rows, _data_i.cols+1, CV_32F);
|
||||
|
Loading…
x
Reference in New Issue
Block a user