Package com.nr.ci

Examples of com.nr.ci.Svm.relax()


    Svmlinkernel linkernel=new Svmlinkernel(data,y);
    Svm linsvm=new Svm(linkernel);
    lambda=10;
    k=0;
    do {
      test=linsvm.relax(lambda,omega);
//      System.out.printf(test);
      k++;
    } while (test > 1.e-3 && k < 100);
    int nerror=0;
    for (i=0;i<M;i++) {
View Full Code Here


    Svmpolykernel polykernel=new Svmpolykernel(data,y,1.0,1.0,2.0);
    Svm polysvm=new Svm(polykernel);
    lambda=10;
    k=0;
    do {
      test=polysvm.relax(lambda,omega);
//      System.out.printf(test);
      k++;
    } while (test > 1.e-3 && k < 100);
    nerror=0;
    for (i=0;i<M;i++) {
View Full Code Here

    Svmgausskernel gausskernel=new Svmgausskernel(data,y,1.0);
    Svm gausssvm=new Svm(gausskernel);
    lambda=10;
    k=0;
    do {
      test=gausssvm.relax(lambda,omega);
//      System.out.printf(test);
      k++;
    } while (test > 1.e-3 && k < 100);
    nerror=0;
    for (i=0;i<M;i++) {
View Full Code Here

    Svm linsvm2=new Svm(linkernel2);
    System.out.printf("Errors: ");
    for (lambda=0.001;lambda<10000;lambda *= 10) {
      k=0;
      do {
        test=linsvm2.relax(lambda,omega);
//        System.out.printf(test);
        k++;
      } while (test > 1.e-3 && k < 100);
      nerror=0;
      for (i=0;i<M;i++) {
View Full Code Here

    Svm polysvm2=new Svm(polykernel2);
    System.out.printf("Errors: ");
    for (lambda=0.001;lambda<10000;lambda *= 10) {
      k=0;
      do {
        test=polysvm2.relax(lambda,omega);
//        System.out.printf(test);
        k++;
      } while (test > 1.e-3 && k < 100);
      // Test training set
      nerror=0;
View Full Code Here

    Svm gausssvm2=new Svm(gausskernel2);
    System.out.printf("Errors: ");
    for (lambda=0.001;lambda<10000;lambda *= 10) {
      k=0;
      do {
        test=gausssvm2.relax(lambda,omega);
//        System.out.printf(test);
        k++;
      } while (test > 1.e-3 && k < 100);
      nerror=0;
      for (i=0;i<M;i++) {
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.