Package fr.lip6.jkernelmachines.kernel.typed

Examples of fr.lip6.jkernelmachines.kernel.typed.DoubleGaussL2


  /**
   * Test method for {@link fr.lip6.jkernelmachines.classifier.SimpleMKL#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));
  }
View Full Code Here


  /**
   * Test method for {@link fr.lip6.jkernelmachines.classifier.SimpleMKL#setClassifier(fr.lip6.jkernelmachines.classifier.KernelSVM)}.
   */
  @Test
  public final void testSetClassifier() {
    LaSVM<double[]> lasvm = new LaSVM<double[]>(new DoubleGaussL2());
    svm.setClassifier(lasvm);
    assertEquals(lasvm, svm.getClassifier());
  }
View Full Code Here

    GaussianGenerator g = new GaussianGenerator(2, 10.0f, 1.0);
    train = g.generateList(10);
    test = g.generateList(10);

    DoubleGaussL2 k = new DoubleGaussL2(1.0);
    svm = new S3VMLight<double[]>(k);
  }
View Full Code Here

  @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);
  }
View Full Code Here

   * 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());
  }
View Full Code Here

  /**
   * 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());
  }
View Full Code Here

  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);
  }
View Full Code Here

   
    GaussianGenerator g = new GaussianGenerator(10, 5.0f, 1.0);
    train = g.generateList(10);
   
    svm = new TSMKL<double[]>();
    svm.addKernel(new DoubleGaussL2());
  }
View Full Code Here

  /**
   * 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));
  }
View Full Code Here

    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);
  }
View Full Code Here

TOP

Related Classes of fr.lip6.jkernelmachines.kernel.typed.DoubleGaussL2

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.