Package weka.gui.ensembleLibraryEditor

Examples of weka.gui.ensembleLibraryEditor.LibrarySerialization


   
    //deal with XML extension for xml files
    if (selectedFile.getName().toLowerCase().endsWith(
  EnsembleLibrary.XML_FILE_EXTENSION)) {
     
      LibrarySerialization librarySerialization;
     
      Vector classifiers = null;
     
      try {
  librarySerialization = new LibrarySerialization();
  classifiers = (Vector) librarySerialization.read(selectedFile.getPath());
      } catch (Exception e) {
  e.printStackTrace();
      }
     
      //library.setClassifiers(classifiers);
View Full Code Here


    throws Exception {

    Vector classifiers = null;
   
    try {
      LibrarySerialization librarySerialization = new LibrarySerialization();
      classifiers = (Vector) librarySerialization.read(stream);
    }
    catch (Exception e) {
      e.printStackTrace();
    }
   
View Full Code Here

   
    //deal with XML extension for xml files
    if (selectedFile.getName().toLowerCase().endsWith(
  EnsembleLibrary.XML_FILE_EXTENSION)) {
     
      LibrarySerialization librarySerialization;
     
      Vector classifiers = new Vector();
     
      for (Iterator it = library.getModels().iterator(); it.hasNext();) {
  EnsembleLibraryModel model = (EnsembleLibraryModel) it.next();
  classifiers.add(model.getClassifier());
      }
     
      try {
  librarySerialization = new LibrarySerialization();
  librarySerialization.write(selectedFile.getPath(), classifiers);
      } catch (Exception e) {
  e.printStackTrace();
      }
     
      //deal with MLF extesion for flat files
View Full Code Here

TOP

Related Classes of weka.gui.ensembleLibraryEditor.LibrarySerialization

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.