1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 15:23:05 +04:00

fixed bug in automatic SVM training

This commit is contained in:
Vadim Pisarevsky
2014-10-18 20:53:39 +04:00
parent d2b9dc5530
commit b37a641cc9
+3
View File
@@ -1728,6 +1728,9 @@ public:
FOR_IN_GRID(coef0, coef_grid)
FOR_IN_GRID(degree, degree_grid)
{
// make sure we updated the kernel and other parameters
setParams(params, Ptr<Kernel>() );
double error = 0;
for( k = 0; k < k_fold; k++ )
{