Commit b37a641c authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

fixed bug in automatic SVM training

parent d2b9dc55
...@@ -1728,6 +1728,9 @@ public: ...@@ -1728,6 +1728,9 @@ public:
FOR_IN_GRID(coef0, coef_grid) FOR_IN_GRID(coef0, coef_grid)
FOR_IN_GRID(degree, degree_grid) FOR_IN_GRID(degree, degree_grid)
{ {
// make sure we updated the kernel and other parameters
setParams(params, Ptr<Kernel>() );
double error = 0; double error = 0;
for( k = 0; k < k_fold; k++ ) for( k = 0; k < k_fold; k++ )
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment