Package fr.lip6.jkernelmachines.kernel.extra

Examples of fr.lip6.jkernelmachines.kernel.extra.CustomTrainTestMatrixKernel


  /**
   * @throws java.lang.Exception
   */
  @Before
  public void setUp() throws Exception {
    GaussianGenerator g = new GaussianGenerator(10, 5.0f, 1.0);
    train = g.generateList(100);
   
    svm = new DoubleLLSVM();
    svm.setK(4);
    svm.setNn(2);
  }
View Full Code Here


  /**
   * @throws java.lang.Exception
   */
  @Before
  public void setUp() throws Exception {
    GaussianGenerator gen = new GaussianGenerator(2, 2, 1.0);
    List<TrainingSample<double[]>> list = gen.generateList(100, 100);
    train = new ArrayList<double[]>();
    for (TrainingSample<double[]> t : list) {
      train.add(t.sample);
    }
  }
View Full Code Here

  /**
   * @throws java.lang.Exception
   */
  @Before
  public void setUp() throws Exception {
    GaussianGenerator g = new GaussianGenerator(2, 50.0f, 1.0);
    train = g.generateList(10);

    svm = new S3VMLightPegasos();
  }
View Full Code Here

   * @throws java.lang.Exception
   */
  @Before
  public void setUp() throws Exception {
   
    GaussianGenerator g = new GaussianGenerator(10, 5.0f, 1.0);
    train = g.generateList(10);
   
    svm = new GradMKL<double[]>();
    svm.addKernel(new DoubleGaussL2());
  }
View Full Code Here

  /**
   * @throws java.lang.Exception
   */
  @Before
  public void setUp() throws Exception {
    GaussianGenerator g = new GaussianGenerator(2, 10.0f, 1.0);
    train = g.generateList(10);
    test = g.generateList(10);

    svm = new S3VMLightSGDQN();
  }
View Full Code Here

   * @throws java.lang.Exception
   */
  @Before
  public void setUp() throws Exception {
   
    GaussianGenerator g = new GaussianGenerator(10, 5.0f, 1.0);
    train = g.generateList(10);
   
    svm = new SimpleMKL<double[]>();
    svm.addKernel(new DoubleGaussL2());
  }
View Full Code Here

   
    //set debug for visibility
    DebugPrinter.DEBUG_LEVEL = 2;
   
    // new generator with 10 classes and stddev of 0.5
    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);
View Full Code Here

  /**
   * @throws java.lang.Exception
   */
  @Before
  public void setUp() throws Exception {
    mcg = new MultiClassGaussianGenerator();
  }
View Full Code Here

  /**
   * Test method for {@link fr.lip6.jkernelmachines.util.generators.MultiClassGaussianGenerator#MultiClassGaussianGenerator(int)}.
   */
  @Test
  public final void testMultiClassGaussianGeneratorInt() {
    mcg = new MultiClassGaussianGenerator(5);
    assertEquals(5, mcg.getNbclasses());
  }
View Full Code Here

  /**
   * @throws java.lang.Exception
   */
  @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);
View Full Code Here

TOP

Related Classes of fr.lip6.jkernelmachines.kernel.extra.CustomTrainTestMatrixKernel

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.