// 1- Form The File with SVM format
// 2- loading the file using dataset loader into a problem object
// 3- perform grid selection
// 4- traing using the selected parameters and save into the model
svm_problem prob = constructProblem(labels, trainingSamples);
svm_parameter param = new svm_parameter();
param.svm_type = svm_parameter.C_SVC;
param.kernel_type = svm_parameter.RBF;
param.gamma = 0.5;
param.C = 1.0;
svm_model theModel = svm.svm_train(prob, param);