projects
/
profile
/
ivi
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d20b2a5
)
fixed warnings in type conversions
author
Rahul Kavi
<leorahul16@gmail.com>
Wed, 12 Feb 2014 12:24:40 +0000
(07:24 -0500)
committer
Maksim Shabunin
<maksim.shabunin@itseez.com>
Mon, 18 Aug 2014 15:06:58 +0000
(19:06 +0400)
fixed warnings in type conversions from size_t to int (in getting size of number of unique classes in a training problem).
modules/ml/src/lr.cpp
patch
|
blob
|
history
diff --git
a/modules/ml/src/lr.cpp
b/modules/ml/src/lr.cpp
index
2089bb8
..
aa93866
100644
(file)
--- a/
modules/ml/src/lr.cpp
+++ b/
modules/ml/src/lr.cpp
@@
-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);