fixed bug in automatic SVM training

pull/3348/head
Vadim Pisarevsky 11 years ago
parent d2b9dc5530
commit b37a641cc9
  1. 3
      modules/ml/src/svm.cpp

@ -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++ )
{

Loading…
Cancel
Save