Package weka.core.converters

Examples of weka.core.converters.AbstractFileLoader


      m_IOThread = new Thread() {
  public void run() {

    try {
      m_Log.statusMessage("Reading from URL...");
      AbstractFileLoader loader = ConverterUtils.getURLLoaderForFile(u.toString());
      if (loader == null)
        throw new Exception("No suitable URLSourcedLoader found for URL!\n" + u);
      ((URLSourcedLoader) loader).setURL(u.toString());
      setInstances(loader.getDataSet());
    } catch (Exception ex) {
      ex.printStackTrace();
      m_Log.statusMessage("Problem reading " + u);
      JOptionPane.showMessageDialog(PreprocessPanel.this,
            "Couldn't read from URL:\n"
View Full Code Here


      m_tempUndoIndex = m_tempUndoFiles.length-1;
    }
   
    if (m_tempUndoFiles[m_tempUndoIndex] != null) {
      // load instances from the temporary file
      AbstractFileLoader loader = ConverterUtils.getLoaderForFile(m_tempUndoFiles[m_tempUndoIndex]);
      try {
  loader.setFile(m_tempUndoFiles[m_tempUndoIndex]);
  setInstancesFromFile(loader);
      }
      catch (Exception e) {
  e.printStackTrace();
  m_Log.logMessage(e.toString());
View Full Code Here

        getImage(m_explorer.getClass().getClassLoader().getResource("weka/gui/weka_icon_new_48.png"));
      jf.setIconImage(icon);

      if (args.length == 1) {
        System.err.println("Loading instances from " + args[0]);
        AbstractFileLoader loader = ConverterUtils.getLoaderForFile(args[0]);
  loader.setFile(new File(args[0]));
        m_explorer.m_PreprocessPanel.setInstancesFromFile(loader);
      }

      Thread memMonitor = new Thread() {
        public void run() {
View Full Code Here

TOP

Related Classes of weka.core.converters.AbstractFileLoader

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.