Examples of classifyNative()


Examples of jnisvmlight.SVMLightInterface.classifyNative()

    precision = 0;
    for (int i = 0; i < N; i++) {

      // Classify a test vector using the Native Interface
      // (in a real application, this should not be one of the training vectors)
      double d = trainer.classifyNative(traindata[i]);
      if ((traindata[i].getLabel() < 0 && d < 0)
          || (traindata[i].getLabel() > 0 && d > 0)) {
        precision++;
      }
      if (i % 10 == 0) {
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.