weka.core.converters
Code IndexAdd Codota to your IDE (free)

Best code snippets using weka.core.converters(Showing top 15 results out of 315)

origin: nz.ac.waikato.cms.weka/weka-dev

/**
 * Opens a connection to the database
 */
public void connectToDatabase() {
 try {
  if (!m_DataBaseConnection.isConnected()) {
   m_DataBaseConnection.connectToDatabase();
  }
 } catch (Exception ex) {
  printException(ex);
 }
}
origin: nz.ac.waikato.cms.weka/weka-dev

/**
 * Sets the database url using the DatabaseUtils file
 * 
 * @throws Exception if something goes wrong
 */
public void setSource() throws Exception {
 m_DataBaseConnection = newDatabaseConnection();
 m_URL = m_DataBaseConnection.getDatabaseURL();
 m_User = m_DataBaseConnection.getUsername();
 m_Password = m_DataBaseConnection.getPassword();
}
origin: nz.ac.waikato.cms.weka/weka-dev

/**
 * Gets all the file extensions used for this type of file.
 * 
 * @return the file extensions
 */
@Override
public String[] getFileExtensions() {
 return new String[] { getFileExtension() };
}
origin: nz.ac.waikato.cms.weka/weka-dev

 /**
  * Main method.
  *
  * @param args should contain the name of an input file.
  */
 public static void main(String[] args) {
  runFileLoader(new SerializedInstancesLoader(), args);
 }
}
origin: nz.ac.waikato.cms.weka/weka-dev

/**
 * Constructor.
 */
public CSVSaver() {
 resetOptions();
}
origin: nz.ac.waikato.cms.weka/weka-dev

/**
 * Gets token.
 * 
 * @param tokenizer the stream tokenizer
 * @throws IOException if reading the next token fails
 */
public static void getToken(StreamTokenizer tokenizer) throws IOException {
 StreamTokenizerUtils.getToken(tokenizer);
}
origin: nz.ac.waikato.cms.weka/weka-dev

/**
 * Gets all the file extensions used for this type of file.
 *
 * @return the file extensions
 */
public String[] getFileExtensions() {
 return new String[]{getFileExtension()};
}
origin: nz.ac.waikato.cms.weka/weka-dev

/**
 * Gets all the file extensions used for this type of file.
 *
 * @return the file extensions
 */
public String[] getFileExtensions() {
 return new String[]{getFileExtension()};
}
origin: nz.ac.waikato.cms.weka/weka-dev

/**
 * Constructor.
 */
public JSONSaver() {
 resetOptions();
}
origin: nz.ac.waikato.cms.weka/weka-dev

 /**
  * Main method.
  * 
  * @param args should contain the options of a Saver.
  */
 public static void main(String[] args) {
  runFileSaver(new JSONSaver(), args);
 }
}
origin: nz.ac.waikato.cms.weka/weka-dev

 /**
  * Main method.
  * 
  * @param args should contain the options of a Saver.
  */
 public static void main(String[] args) {
  runFileSaver(new LibSVMSaver(), args);
 }
}
origin: nz.ac.waikato.cms.weka/weka-dev

/**
 * returns a vector with the classnames of all the file loaders.
 * 
 * @return the classnames of the loaders
 */
public static Vector<String> getFileLoaders() {
 return getConverters(m_FileLoaders);
}
origin: nz.ac.waikato.cms.weka/weka-dev

/**
 * writes the data to the given file.
 * 
 * @param filename the file to write the data to
 * @param data the data to store
 * @throws Exception if writing fails
 */
public static void write(String filename, Instances data) throws Exception {
 DataSink sink;
 sink = new DataSink(filename);
 sink.write(data);
}
origin: nz.ac.waikato.cms.weka/weka-stable

/**
 * Sets the database url using the DatabaseUtils file
 * 
 * @throws Exception if something goes wrong
 */
public void setSource() throws Exception {
 m_DataBaseConnection = newDatabaseConnection();
 m_URL = m_DataBaseConnection.getDatabaseURL();
 m_User = m_DataBaseConnection.getUsername();
 m_Password = m_DataBaseConnection.getPassword();
}
origin: nz.ac.waikato.cms.weka/weka-stable

/**
 * Opens a connection to the database
 */
public void connectToDatabase() {
 try {
  if (!m_DataBaseConnection.isConnected()) {
   m_DataBaseConnection.connectToDatabase();
  }
 } catch (Exception ex) {
  printException(ex);
 }
}
weka.core.converters

Most used classes

  • ConverterUtils$DataSource
    Helper class for loading data from files and URLs. Via the ConverterUtils class it determines which
  • ArffSaver
    Writes to a destination in arff text format. Valid options are: -i The input fi
  • AbstractFileLoader
    Abstract superclass for all file loaders.
  • AbstractSaver
    Abstract class for Saver
  • ArffLoader
    Reads a source that is in arff (attribute relation file format) format.
  • CSVSaver,
  • C45Loader,
  • C45Saver,
  • FileSourcedConverter,
  • JSONLoader,
  • JSONSaver,
  • LibSVMLoader,
  • LibSVMSaver,
  • MatlabLoader,
  • MatlabSaver,
  • SVMLightLoader,
  • SVMLightSaver,
  • SerializedInstancesLoader,
  • SerializedInstancesSaver

For IntelliJ IDEA and
Android Studio

  • Codota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutContact Us
  • Terms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)