Examples of RBFKernel


Examples of org.apache.ctakes.utils.kernel.RBFKernel

    String dir = "/home/tmill/Projects/coref/training/";
    String config = "treeKernels";
    String path = dir+config;
    LinearKernel linear = new LinearKernel(false);
    PolyKernel poly = new PolyKernel(3, 0.0, false);
    RBFKernel rbf = new RBFKernel(0.5);
    Kernel kernel = rbf;
   
    LinearKernelMatrixWriter lkmw;
    lkmw = new LinearKernelMatrixWriter(path + "/ne/training.downsampled.libsvm", path + "/ne/featRBFMatrix.downsampled.out");
    lkmw.run(kernel);
View Full Code Here

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

Examples of weka.classifiers.functions.supportVector.RBFKernel

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

Examples of weka.classifiers.functions.supportVector.RBFKernel

    @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
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.