System.out.println("Samples generated");
// 3. train svm
long time = System.currentTimeMillis();
// Kernel<double[]> k = new DoubleLinear();
DoubleGaussL2 k = new DoubleGaussL2();
k.setGamma(2);
SMODensity<double[]> svm = new SMODensity<double[]>(k);
svm.setC(100);
svm.train(train);
long smotime = System.currentTimeMillis() - time;
System.out.println("SMO done in " + smotime);