9 #define Malloc(type,n) (type *)malloc((n)*sizeof(type))
17 struct svm_problem SVMProblem;
19 struct svm_model* modelSVM;
23 SVMNonLin(
string className);
26 void trainModel(std::vector<std::vector<double> > &features, vector<double> &labels, svm_parameter ¶m);
27 double predictModel(vector<double> features);
28 svm_parameter initialiseParam(
int solverTYPE=C_SVC,
double C=1.0,
double eps=0.1,
int kernelType=RBF,
double gamma=3.0);
29 void saveModel(
string pathFile);
30 void loadModel(
string pathFile);
31 vector<vector<double> > readFeatures(
string filePath);