is the sigmoid kernel in SVM same as it in LIBSVM?

asked 2017-05-04 10:43:45 -0500

eipoa gravatar image

updated 2019-12-10 01:34:18 -0500

Akhil Patel gravatar image
        Ptr<SVM> svm = SVM::create();
        svm->setDegree(3); // have to set the param, runtime error
        svm->setTermCriteria(TermCriteria(TermCriteria::MAX_ITER + TermCriteria::EPS, 1000, 0.01));
        svm->trainAuto(_Samples, 10, SVM::getDefaultGrid(SVM::C), SVM::getDefaultGrid(SVM::GAMMA),
        SVM::getDefaultGrid(SVM::P), SVM::getDefaultGrid(SVM::NU), SVM::getDefaultGrid(SVM::COEF),
        SVM::getDefaultGrid(SVM::DEGREE), true);
        svm->predict(Test, results);

using LIBSVM with sigmoid can achieve 86% of accuracy, but using cv can only get about 40%. what's wrong with my code?

edit retag flag offensive close merge delete