//Read training file
Instance[] trainingInstances = DataFileReader.readDataFile(trainFileName);
//Register kernel function
KernelManager.setCustomKernel(new LinearKernel());
//Setup parameters
svm_parameter param = new svm_parameter();
//Train the model