Package weka.core.converters

Examples of weka.core.converters.CSVSaver


    else if(className.equalsIgnoreCase(ArffSaver.class.getName())) {
      ArffSaver arffSaver = (ArffSaver)saver.getSaver();
      buffer.append("  Loader type: ArffSaver" + "\n");       
    }
    else if(className.equalsIgnoreCase(CSVSaver.class.getName())) {
      CSVSaver csvSaver = (CSVSaver)saver.getSaver();
      buffer.append("  Loader type: CSVLoader" + "\n");
   
    else {
      buffer.append("  Loader type: Unknown" + "\n");
    }
View Full Code Here


        }
    }

    protected void saveInstances(Instances instances, File outputFile) {
        try {
            CSVSaver saver = new CSVSaver();
            saver.setFile(outputFile);
            saver.setInstances(instances);
            saver.writeBatch();
            System.out.println("Saved instances to " + outputFile);
        } catch (IOException e) {
            System.err.println("Error writing instances to " + outputFile);
            System.err.println("\t" + e.getMessage());
        }
View Full Code Here

TOP

Related Classes of weka.core.converters.CSVSaver

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.