Package weka.classifiers.functions.supportVector

Examples of weka.classifiers.functions.supportVector.RBFKernel


      // new svm with rbf kernel
      SMO smo = new SMO();
      String[] options = { "-L 1e-15", "-P 1e-15" , "-N 2"};
      smo.setOptions(options);
      smo.setC(1.0); //same as default value for jkms
      RBFKernel rbf = new RBFKernel();
      rbf.setGamma(0.1); //same as default value for jkms
      smo.setKernel(rbf);
     
      smo.buildClassifier(train);
     
     
View Full Code Here


   * the default constructor
   */
  public GaussianProcesses() {
    super();
   
    m_kernel = new RBFKernel();
    ((RBFKernel) m_kernel).setGamma(1.0);
  }
View Full Code Here

    @Override
    public WekaModel train(ExampleSet examples) {
        //These settings aren't terrible
        SMO smo = new SMO();
        RBFKernel rbf = new RBFKernel();
        rbf.setGamma(0.5);
        smo.setKernel(rbf);
        smo.setC(1.5);
       
        //These also work pretty ok
        Logistic log = new Logistic();
View Full Code Here

TOP

Related Classes of weka.classifiers.functions.supportVector.RBFKernel

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.