4243444546474849505152
@Test public final void testValueOfIntegerInteger() { // generate data GaussianGenerator gen = new GaussianGenerator(2); List<TrainingSample<double[]>> list = gen.generateList(5, 10); DoubleLinear lin = new DoubleLinear(); double[][] matrix = lin.getKernelMatrix(list); double[][] train = new double[5][5];
4748495051525354555657
* @throws java.lang.Exception */ @Before public void setUp() throws Exception { GaussianGenerator g = new GaussianGenerator(2, 1, 0.5); list = g.generateList(nb_samples); dk = new DoubleGaussL2(); nk = new NystromKernel<double[]>(dk); } /**
5051525354555657585960
MultiClassGaussianGenerator mcg = new MultiClassGaussianGenerator(); mcg.setSigma(0.5); mcg.setNbclasses(10); //generate the list List<TrainingSample<double[]>> list = mcg.generateList(100); //build classifier based on GaussL2 lasvm with c=10 DoubleGaussL2 k =new DoubleGaussL2(2); LaSVM<double[]> svm = new LaSVM<double[]>(k); svm.setC(10);
4849505152535455565758
@Before public void setUp() throws Exception { MultiClassGaussianGenerator mcgg = new MultiClassGaussianGenerator(4); mcgg.setP(10); mcgg.setSigma(1); train = mcgg.generateList(5); DoubleGaussL2 k = new DoubleGaussL2(); k.setGamma(0.5); LaSVM<double[]> svm = new LaSVM<double[]>(k); svm.setC(10);