Examples of writeBatch()


Examples of weka.core.converters.CSVSaver.writeBatch()

    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

Examples of weka.core.converters.Saver.writeBatch()

      Messages.getInstance().getString("DatasetListPanel_ActionPerformed_Result_JOptionPaneShowConfirmDialog_Text"));
      if (result == JOptionPane.YES_OPTION) {
        Saver saver = ConverterUtils.getSaverForFile(filename);
        saver.setFile(new File(filename));
        saver.setInstances(dialog.getInstances());
        saver.writeBatch();
      }
    }
  }
  catch (Exception ex) {
    JOptionPane.showMessageDialog(
View Full Code Here

Examples of weka.core.converters.Saver.writeBatch()

      "File was modified - save changes?");
      if (result == JOptionPane.YES_OPTION) {
        Saver saver = ConverterUtils.getSaverForFile(filename);
        saver.setFile(new File(filename));
        saver.setInstances(dialog.getInstances());
        saver.writeBatch();
      }
    }
  }
  catch (Exception ex) {
    JOptionPane.showMessageDialog(
View Full Code Here

Examples of weka.core.converters.XRFFSaver.writeBatch()

      xrffSaver.setDestination(targetFile);
    } catch (IOException e) {
      System.err.println("Could not write UnigramTraining file.");
    }

    xrffSaver.writeBatch();
  }

 
  /**
   * Build the instance with the suitable InstanceBuilder.
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.