Package weka.core.converters

Examples of weka.core.converters.LibSVMLoader


  /**
   * @param args
   */
  public static void main(String[] args) throws Exception {
   
    LibSVMLoader libsvm = new LibSVMLoader();
    libsvm.setFile(new File(args[0]));
   
    //read from libsvm format files
    Instances instances = libsvm.getDataSet();
   
    //convert to nominal class argument to avoid
    // exception in weka's smo :-/
    NumericToNominal filter = new NumericToNominal();
    filter.setInputFormat(instances);
View Full Code Here

TOP

Related Classes of weka.core.converters.LibSVMLoader

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.