How to port the MATLAB libSVM parameters in C++
问题 In my cross-validation in MATLAB with libSVM I found that these are the best parameters to use: model = svmtrain( labels, training, '-s 0 -t 2 -c 10000 -g 100'); Now I want to replicate the classification in C++ with OpenCV. But I do not understand how to set the C++ parameters to be the same as MATLAB: Based on this documentation I tried the following: CvSVMParams params; params.svm_type = CvSVM::C_SVC; params.kernel_type = CvSVM::RBF; //params.term_crit = cvTermCriteria(CV_TERMCRIT_ITER,