20#ifndef _COSTFACTORYSVM_H_
21#define _COSTFACTORYSVM_H_
26#include "base/Vector2d.h"
27#include "CostFactory.h"
30 enum SVM_TYPE {C_SVC=0, nu_SVC=1,one_class=2, epsilon_SVR=3, nu_SVR=4};
31 enum KERNEL_TYPE {linear=0,polynomial=1,radial=2,sigmoid=3};
38CostFactorySVM(std::string svm_type, std::string kernel_type,
unsigned short kernel_degree,
float gamma,
float coef0,
float ccost,
float nu,
float epsilon_loss,
int cache,
float epsilon_tol,
bool shrinking,
bool prob_est,
unsigned short cv,
short verbose);
43std::string m_svm_type;
44std::string m_kernel_type;
45unsigned short m_kernel_degree;