Java Doc for EnsembleLibrary.java in  » Science » weka » weka » classifiers » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Science » weka » weka.classifiers 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   weka.classifiers.EnsembleLibrary

All known Subclasses:   weka.classifiers.meta.ensembleSelection.EnsembleSelectionLibrary,
EnsembleLibrary
public class EnsembleLibrary implements Serializable(Code)
This class represents a library of classifiers. This class follows the factory design pattern of creating LibraryModels when asked. It also has the methods necessary for saving and loading models from lists.
author:
   Robert Jung (mrbobjung@gmail.com)
version:
   $Revision: 1.1 $


Field Summary
final public static  StringFLAT_FILE_EXTENSION
    
final public static  StringXML_FILE_EXTENSION
    
public  TreeSetm_Models
    

Constructor Summary
public  EnsembleLibrary()
    

Method Summary
public  voidaddModel(EnsembleLibraryModel model)
    
public  voidaddModel(String modelString)
    
public  voidaddPropertyChangeListener(PropertyChangeListener listener)
     Adds an object to the list of those that wish to be informed when the library changes.
public  voidclearModels()
    
public  EnsembleLibraryModelcreateModel(Classifier classifier)
    
public  EnsembleLibraryModelcreateModel(String modelString)
     This method takes a String argument defining a classifier and uses it to create a base Classifier.
public  TreeSetgetModels()
    
public static  voidloadLibrary(File selectedFile, JComponent dialogParent, EnsembleLibrary library)
    
public static  voidloadLibrary(File selectedFile, EnsembleLibrary library)
     This method takes a model list file and a library object as arguments and Instantiates all of the models in the library list file.
public static  voidloadLibrary(InputStream stream, EnsembleLibrary library)
     This method takes an XML input stream and a library object as arguments and Instantiates all of the models in the stream.
public  voidremoveModel(EnsembleLibraryModel model)
    
public static  voidsaveLibrary(File selectedFile, EnsembleLibrary library, JComponent dialogParent)
     Saves the given library in the specified file.
public  voidsetModels(TreeSet models)
    
public  intsize()
    

Field Detail
FLAT_FILE_EXTENSION
final public static String FLAT_FILE_EXTENSION(Code)
The flat file extension for model list files



XML_FILE_EXTENSION
final public static String XML_FILE_EXTENSION(Code)
The default file extension for model list files



m_Models
public TreeSet m_Models(Code)
the set of classifiers that constitute the library




Constructor Detail
EnsembleLibrary
public EnsembleLibrary()(Code)
Constructor is responsible for initializing the data structure hoilding all of the models




Method Detail
addModel
public void addModel(EnsembleLibraryModel model)(Code)
adds a LibraryModel to the Library
Parameters:
  model - the model to add



addModel
public void addModel(String modelString)(Code)
adds a LibraryModel to the Library
Parameters:
  modelString - the model to add



addPropertyChangeListener
public void addPropertyChangeListener(PropertyChangeListener listener)(Code)
Adds an object to the list of those that wish to be informed when the library changes.
Parameters:
  listener - a new listener to add to the list



clearModels
public void clearModels()(Code)
removes all models from the current library



createModel
public EnsembleLibraryModel createModel(Classifier classifier)(Code)
creates a LibraryModel from a string representing the command line invocation
Parameters:
  classifier - the classifier to create a model from the generated model



createModel
public EnsembleLibraryModel createModel(String modelString)(Code)
This method takes a String argument defining a classifier and uses it to create a base Classifier.
Parameters:
  modelString - the classifier string the generated model



getModels
public TreeSet getModels()(Code)
getter for the set of models in this library the current models



loadLibrary
public static void loadLibrary(File selectedFile, JComponent dialogParent, EnsembleLibrary library)(Code)
Loads and returns a library from the specified file
Parameters:
  selectedFile - the file to load from
Parameters:
  dialogParent - the parent component
Parameters:
  library - will contain the data after loading



loadLibrary
public static void loadLibrary(File selectedFile, EnsembleLibrary library) throws Exception(Code)
This method takes a model list file and a library object as arguments and Instantiates all of the models in the library list file. It is assumed that the passed library was an associated working directory and can take care of creating the model objects itself.
Parameters:
  selectedFile - the file to load
Parameters:
  library - the library
throws:
  Exception - if something goes wrong



loadLibrary
public static void loadLibrary(InputStream stream, EnsembleLibrary library) throws Exception(Code)
This method takes an XML input stream and a library object as arguments and Instantiates all of the models in the stream. It is assumed that the passed library was an associated working directory and can take care of creating the model objects itself.
Parameters:
  stream - the XML stream to load
Parameters:
  library - the library
throws:
  Exception - if something goes wrong



removeModel
public void removeModel(EnsembleLibraryModel model)(Code)
removes a LibraryModel from the Library
Parameters:
  model - the model to remove



saveLibrary
public static void saveLibrary(File selectedFile, EnsembleLibrary library, JComponent dialogParent)(Code)
Saves the given library in the specified file. This saves only the specification of the models as a model list.
Parameters:
  selectedFile - the file to save to
Parameters:
  library - the library to save
Parameters:
  dialogParent - the component parent



setModels
public void setModels(TreeSet models)(Code)
setter for the set of models in this library
Parameters:
  models - the models to use



size
public int size()(Code)
Returns the number of models in the ensemble library the number of models



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.