auto_train fails for EPS_SVR (Bug #64)


Added by Michel Valstar about 15 years ago. Updated about 15 years ago.


Status:Done Start date:
Priority:High Due date:
Assignee:- % Done:

0%

Category:ml
Target version:-
Affected version: Operating System:
Difficulty: HW Platform:
Pull request:

Description

When trying to do an auto_train for an epsilon-SVR with the following parameters:

params.svm_type = [[CvSVM]]::EPS_SVR;    // - Use EPS_SVR
params.p = 0.01;
params.kernel_type = [[CvSVM]]::RBF;
params.gamma = 1./100;
params.C = 8;

and default grids:

CvSVM svr0 = CvSVM();
svr0.train_auto(const_cast<const CvMat*> (cvFeatures0), const_cast<const CvMat*> (cvLabels0), NULL, NULL, params, k_fold_train);

the training dies horribly:

OpenCV Error: Bad flag (parameter or structure field) (Unrecognized or unsupported array type) in cvGetMat, file /Users/michel/macCode/opencv-2.0/src/cxcore/cxarray.cpp, line 2470
terminate called after throwing an instance of 'cv::Exception'
Program received signal: “SIGABRT”.

On the same data, everything runs fine when I switch to Nu-SVR with the following params:

params.svm_type = CvSVM::NU_SVR;
params.kernel_type = CvSVM::RBF;
params.gamma = 1./100;
params.nu = 0.5;


Associated revisions

Revision 59452dfc
Added by Andrey Kamaev over 12 years ago

Merge pull request #64 from vpisarev/bugs_1939_2100

Revision e7d22b20
Added by Roman Donchenko over 11 years ago

Merge pull request #64 from ilya-lavrenov:ocl_enable_tests

History

Updated by Maria Dimashova about 15 years ago

Fixed in revision 2692.
Problem was in cvPreprocessOrderedResponses().

  • Status changed from Open to Done
  • (deleted custom field) set to fixed

Also available in: Atom PDF