4748495051525354
@Before public void setUp() throws Exception { GaussianGenerator g = new GaussianGenerator(10, 5.0f, 1.0); train = g.generateList(10); DoubleGaussL2 k = new DoubleGaussL2(1.0); svm = new SMOSVM<double[]>(k); }
57585960616263646566
* Test method for {@link fr.lip6.jkernelmachines.classifier.SMOSVM#SMOSVM(fr.lip6.jkernelmachines.kernel.Kernel)}. */ @Test public final void testSMOSVM() { DoubleGaussL2 k = new DoubleGaussL2(1.0); svm = new SMOSVM<double[]>(k); assertEquals(k, svm.getKernel()); }
899091929394959697
/** * Test method for {@link fr.lip6.jkernelmachines.classifier.SMOSVM#setKernel(fr.lip6.jkernelmachines.kernel.Kernel)}. */ @Test public final void testSetKernel() { DoubleGaussL2 k = new DoubleGaussL2(); svm.setKernel(k); assertEquals(k, svm.getKernel()); }
48495051525354555657
public void setUp() throws Exception { GaussianGenerator g = new GaussianGenerator(10, 5.0f, 1.0); train = g.generateList(10); DoubleGaussL2 k = new DoubleGaussL2(1.0); svm = new NystromLSSVM<double[]>(k); svm.setPercent(0.8); svm.setIteration(2); }
49505152535455
GaussianGenerator g = new GaussianGenerator(10, 5.0f, 1.0); train = g.generateList(10); svm = new TSMKL<double[]>(); svm.addKernel(new DoubleGaussL2()); }
697071727374757677
/** * Test method for {@link fr.lip6.jkernelmachines.classifier.TSMKL#addKernel(fr.lip6.jkernelmachines.kernel.Kernel)}. */ @Test public final void testAddKernel() { DoubleGaussL2 k = new DoubleGaussL2(1.0); svm.addKernel(k); assertTrue(svm.getKernels().contains(k)); }
4950515253545556575859
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); multisvm = new OneAgainstAll<double[]>(svm); }
4849505152535455
*/ @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); }
37383940414243
/** * @throws java.lang.Exception */ @Before public void setUp() throws Exception { gaussl2 = new DoubleGaussL2(); }
5455565758596061
/** * Test method for {@link fr.lip6.jkernelmachines.kernel.typed.DoubleGaussL2#DoubleGaussL2(double)}. */ @Test public final void testDoubleGaussL2Double() { gaussl2 = new DoubleGaussL2(1.0); assertEquals(gaussl2.getGamma(), 1.0, 1e-15); }