9 #define Malloc(type,n) (type *)malloc((n)*sizeof(type))
17 struct problem SVMProblem;
21 struct model* modelLinearSVM;
22 SVMLinear(
string className);
24 void trainModel(std::vector<std::vector<double> > &features, vector<double> &labels, parameter ¶m,
int bias=1);
25 double predictModel(vector<double> features);
26 parameter initialiseParam(
int solverTYPE=L2R_L2LOSS_SVC_DUAL,
double C=1.0,
double eps=0.1,
int nClass=0,
int nr_Positive=0,
int nr_Negative=0);
27 void saveModel(
string pathFile);
28 void loadModel(
string pathFile);
29 vector<vector<double> > readFeatures(
string filePath);