From 79ab60fab600d8b5dfbbbc80e831dbc8cadadf20 Mon Sep 17 00:00:00 2001 From: neingeist Date: Mon, 20 Jan 2014 12:03:59 +0100 Subject: [PATCH] remove unused parameters in SVMTest --- SVMTest.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/SVMTest.cpp b/SVMTest.cpp index 9c983d6..4bf51dd 100644 --- a/SVMTest.cpp +++ b/SVMTest.cpp @@ -21,10 +21,8 @@ int main() CvSVMParams params; params.svm_type = CvSVM::C_SVC; params.term_crit = cvTermCriteria(CV_TERMCRIT_ITER + CV_TERMCRIT_EPS, 1000, 1e-6); - params.kernel_type = CvSVM::RBF; //CvSVM::RBF, CvSVM::LINEAR ... - params.degree = 1; // for poly + params.kernel_type = CvSVM::RBF; params.gamma = .0001; // for poly/rbf/sigmoid - params.coef0 = 0; // for poly/sigmoid params.C = 7; // for CV_SVM_C_SVC, CV_SVM_EPS_SVR and CV_SVM_NU_SVR params.nu = 0.0; // for CV_SVM_NU_SVC, CV_SVM_ONE_CLASS, and CV_SVM_NU_SVR