Package jnisvmlight

Examples of jnisvmlight.SVMLightInterface.trainModel()


    // Switch on some debugging output
    tp.getLearningParameters().verbosity = 1;

    System.out.println("\nTRAINING SVM-light MODEL ..");
    SVMLightModel model = trainer.trainModel(traindata, tp);
    System.out.println(" DONE.");

    // Use this to store a model to a file or read a model from a URL.
    model.writeModelToFile("jni_model.dat");
    model = SVMLightModel.readSVMLightModelFromURL(new java.io.File("jni_model.dat").toURL());
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.