Examples of DoubleQNPKL


Examples of fr.lip6.jkernelmachines.classifier.DoubleQNPKL

      validate();
      // save current classifier
      model.classifier = svm;
    } else if ("qnpkl".equalsIgnoreCase(classifierBox.getSelectedItem()
        .toString())) {
      DoubleQNPKL svm = new DoubleQNPKL();
      svm.setC(Double.parseDouble(regularizationField.getText()));
      DebugPrinter.setDebugLevel(2);

      svm.train(localTrain);
      // info
      classnameLabel.setText(svm.getClass().getSimpleName());
      double[] alphas = svm.getAlphas();
      int sv = 0;
      for (int s = 0; s < alphas.length; s++) {
        if (alphas[s] != 0) {
          sv++;
        }
View Full Code Here

Examples of fr.lip6.jkernelmachines.classifier.DoubleQNPKL

  public void setUp() throws Exception {
   
    GaussianGenerator g = new GaussianGenerator(10, 5.0f, 1.0);
    train = g.generateList(10);
   
    svm = new DoubleQNPKL();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.