Package fr.lip6.jkernelmachines.kernel.extra.bag

Examples of fr.lip6.jkernelmachines.kernel.extra.bag.UnormalizedSubListKernel


      System.out.println("Error parsing file "+args[1]);
      return;
    }
   
    //setting kernel
    DoubleGaussL2 kernel = new DoubleGaussL2();
    kernel.setGamma(2.0);
   
    //setting SVM parameters
    LaSVM<double[]> svm = new LaSVM<double[]>(kernel);
    svm.setC(10); //C hyperparameter
       
View Full Code Here


        // kernel type
        else if (args[i].equalsIgnoreCase("-k")) {
          i++;

          if (args[i].equalsIgnoreCase("gauss")) {
            kernel = new DoubleGaussL2();
          } else {
            kernel = new DoubleLinear();
          }
        }
        // algorithm
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 LaSVM<double[]>(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

  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 LaSVM<double[]>(k);
  }
View Full Code Here

   * Test method for
   * {@link fr.lip6.jkernelmachines.density.SMODensity#train(java.util.List)}.
   */
  @Test
  public final void testTrainListOfT() {
    DoubleGaussL2 k = new DoubleGaussL2();
    SMODensity<double[]> de = new SMODensity<double[]>(k);
    de.setC(1.);
    de.train(train);

    for (double[] x : train) {
View Full Code Here

  public void setUp() throws Exception {
   
    GaussianGenerator g = new GaussianGenerator(10, 5.0f, 0.1);
    train = g.generateList(50);
   
    DoubleGaussL2 k = new DoubleGaussL2(1.0);
    svm = new LaSVM<double[]>(k);
    svm.setC(1.0);
  }
View Full Code Here

   * Test method for
   * {@link fr.lip6.jkernelmachines.density.SMODensity#train(java.util.List)}.
   */
  @Test
  public final void testTrainListOfT() {
    DoubleGaussL2 k = new DoubleGaussL2();
    SimpleMKLDensity<double[]> de = new SimpleMKLDensity<double[]>();
    for(int i = 0 ; i < 2 ; i++) {
      de.addKernel(new IndexDoubleGaussL2(i));
    }
    de.addKernel(k);
View Full Code Here

    int dim = 128;
   
    GaussianGenerator gen = new GaussianGenerator(dim, 0, 1.0);
    list = gen.generateList(dim);
   
    k = new DoubleGaussL2(2.0);
    pca = new KernelPCA<double[]>(k);
   
    pca.train(list);
  }
View Full Code Here

  public void setUp() throws Exception {
   
    GaussianGenerator g = new GaussianGenerator(10, 5.0f, 0.1);
    train = g.generateList(50);
   
    DoubleGaussL2 k = new DoubleGaussL2(1.0);
    svm = new LaSVM<double[]>(k);
    svm.setC(1.0);
  }
View Full Code Here

TOP

Related Classes of fr.lip6.jkernelmachines.kernel.extra.bag.UnormalizedSubListKernel

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.