fixed bug in automatic SVM training
This commit is contained in:
parent
d2b9dc5530
commit
b37a641cc9
@ -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…
x
Reference in New Issue
Block a user