Java Doc for CheckScheme.java in  » Science » weka » weka » core » 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.core 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   weka.core.Check
      weka.core.CheckScheme

All known Subclasses:   weka.attributeSelection.CheckAttributeSelection,  weka.classifiers.CheckClassifier,  weka.clusterers.CheckClusterer,  weka.associations.CheckAssociator,  weka.classifiers.functions.supportVector.CheckKernel,
CheckScheme
abstract public class CheckScheme extends Check (Code)
Abstract general class for testing schemes in Weka. Derived classes are also used for JUnit tests.
author:
   FracPete (fracpete at waikato dot ac dot nz)
version:
   $Revision: 1.3 $
See Also:   TestInstances

Inner Class :public static class PostProcessor

Field Summary
protected  booleanm_ClasspathProblems
    
protected  intm_NumDate
    
protected  intm_NumInstances
    
protected  intm_NumInstancesRelational
    
protected  intm_NumNominal
    
protected  intm_NumNumeric
    
protected  intm_NumRelational
    
protected  intm_NumString
    
protected  PostProcessorm_PostProcessor
    
protected  Stringm_WordSeparators
    
protected  String[]m_Words
    


Method Summary
protected  voidaddMissing(Instances data, int level, boolean predictorMissing, boolean classMissing)
     Add missing values to a dataset.
protected static  StringarrayToList(String[] value)
    
public static  StringattributeTypeToString(int type)
    
protected  voidcompareDatasets(Instances data1, Instances data2)
     Compare two datasets to see if they differ.
abstract public  voiddoTests()
    
public  intgetNumDate()
    
public  intgetNumInstances()
     Gets the current number of instances to use for the datasets.
public  intgetNumInstancesRelational()
    
public  intgetNumNominal()
    
public  intgetNumNumeric()
    
public  intgetNumRelational()
    
public  intgetNumString()
    
public  String[]getOptions()
     Gets the current settings of the CheckClassifier.
public  PostProcessorgetPostProcessor()
    
public  StringgetWordSeparators()
     returns the word separators (chars) to use for assembling strings.
public  StringgetWords()
     returns the words used for assembling strings in a comma-separated list.
public  booleanhasClasspathProblems()
    
public  EnumerationlistOptions()
     Returns an enumeration describing the available options.
protected static  String[]listToArray(String value)
    
protected  Instancesprocess(Instances data)
     Provides a hook for derived classes to further modify the data.
public  voidsetNumDate(int value)
    
public  voidsetNumInstances(int value)
     Sets the number of instances to use in the datasets (some classifiers might require more instances).
public  voidsetNumInstancesRelational(int value)
    
public  voidsetNumNominal(int value)
    
public  voidsetNumNumeric(int value)
    
public  voidsetNumRelational(int value)
    
public  voidsetNumString(int value)
    
public  voidsetOptions(String[] options)
     Parses a given list of options.
public  voidsetPostProcessor(PostProcessor value)
    
public  voidsetWordSeparators(String value)
     sets the word separators (chars) to use for assembling strings.
public  voidsetWords(String value)
     Sets the comma-separated list of words to use for generating strings.

Field Detail
m_ClasspathProblems
protected boolean m_ClasspathProblems(Code)
whether classpath problems occurred



m_NumDate
protected int m_NumDate(Code)
the number of date attributes



m_NumInstances
protected int m_NumInstances(Code)
The number of instances in the datasets



m_NumInstancesRelational
protected int m_NumInstancesRelational(Code)
the number of instances in relational attributes (applies also for bags in multi-instance)



m_NumNominal
protected int m_NumNominal(Code)
the number of nominal attributes



m_NumNumeric
protected int m_NumNumeric(Code)
the number of numeric attributes



m_NumRelational
protected int m_NumRelational(Code)
the number of relational attributes



m_NumString
protected int m_NumString(Code)
the number of string attributes



m_PostProcessor
protected PostProcessor m_PostProcessor(Code)
for post-processing the data even further



m_WordSeparators
protected String m_WordSeparators(Code)
for generating String attributes/classes



m_Words
protected String[] m_Words(Code)
for generating String attributes/classes





Method Detail
addMissing
protected void addMissing(Instances data, int level, boolean predictorMissing, boolean classMissing)(Code)
Add missing values to a dataset.
Parameters:
  data - the instances to add missing values to
Parameters:
  level - the level of missing values to add (if positive, thisis the probability that a value will be set to missing, if negativeall but one value will be set to missing (not yet implemented))
Parameters:
  predictorMissing - if true, predictor attributes will be modified
Parameters:
  classMissing - if true, the class attribute will be modified



arrayToList
protected static String arrayToList(String[] value)(Code)
turns the array into a comma-separated list
Parameters:
  value - the array to process the array as list



attributeTypeToString
public static String attributeTypeToString(int type)(Code)
returns a string representation of the attribute type
Parameters:
  type - the attribute type to get a string rerpresentation for the string representation



compareDatasets
protected void compareDatasets(Instances data1, Instances data2) throws Exception(Code)
Compare two datasets to see if they differ.
Parameters:
  data1 - one set of instances
Parameters:
  data2 - the other set of instances
throws:
  Exception - if the datasets differ



doTests
abstract public void doTests()(Code)
Begin the tests, reporting results to System.out



getNumDate
public int getNumDate()(Code)
returns the current number of date attributes the number of date attributes



getNumInstances
public int getNumInstances()(Code)
Gets the current number of instances to use for the datasets. the number of instances



getNumInstancesRelational
public int getNumInstancesRelational()(Code)
returns the current number of instances in relational/bag attributes to produce the number of instances



getNumNominal
public int getNumNominal()(Code)
returns the current number of nominal attributes the number of nominal attributes



getNumNumeric
public int getNumNumeric()(Code)
returns the current number of numeric attributes the number of numeric attributes



getNumRelational
public int getNumRelational()(Code)
returns the current number of relational attributes the number of relational attributes



getNumString
public int getNumString()(Code)
returns the current number of string attributes the number of string attributes



getOptions
public String[] getOptions()(Code)
Gets the current settings of the CheckClassifier. an array of strings suitable for passing to setOptions



getPostProcessor
public PostProcessor getPostProcessor()(Code)
returns the current PostProcessor, can be null the current PostProcessor



getWordSeparators
public String getWordSeparators()(Code)
returns the word separators (chars) to use for assembling strings. the current separators



getWords
public String getWords()(Code)
returns the words used for assembling strings in a comma-separated list. the words as comma-separated list



hasClasspathProblems
public boolean hasClasspathProblems()(Code)
returns TRUE if the classifier returned a "not in classpath" Exception true if CLASSPATH problems occurred



listOptions
public Enumeration listOptions()(Code)
Returns an enumeration describing the available options. an enumeration of all the available options.



listToArray
protected static String[] listToArray(String value)(Code)
turns the comma-separated list into an array
Parameters:
  value - the list to process the list as array



process
protected Instances process(Instances data)(Code)
Provides a hook for derived classes to further modify the data.
Parameters:
  data - the data to process the processed data
See Also:   CheckScheme.m_PostProcessor



setNumDate
public void setNumDate(int value)(Code)
sets the number of data attributes
Parameters:
  value - the number of date attributes



setNumInstances
public void setNumInstances(int value)(Code)
Sets the number of instances to use in the datasets (some classifiers might require more instances).
Parameters:
  value - the number of instances to use



setNumInstancesRelational
public void setNumInstancesRelational(int value)(Code)
sets the number of instances in relational/bag attributes to produce
Parameters:
  value - the number of instances



setNumNominal
public void setNumNominal(int value)(Code)
sets the number of nominal attributes
Parameters:
  value - the number of nominal attributes



setNumNumeric
public void setNumNumeric(int value)(Code)
sets the number of numeric attributes
Parameters:
  value - the number of numeric attributes



setNumRelational
public void setNumRelational(int value)(Code)
sets the number of relational attributes
Parameters:
  value - the number of relational attributes



setNumString
public void setNumString(int value)(Code)
sets the number of string attributes
Parameters:
  value - the number of string attributes



setOptions
public void setOptions(String[] options) throws Exception(Code)
Parses a given list of options.
Parameters:
  options - the list of options as an array of strings
throws:
  Exception - if an option is not supported



setPostProcessor
public void setPostProcessor(PostProcessor value)(Code)
sets the PostProcessor to use
Parameters:
  value - the new PostProcessor
See Also:   CheckScheme.m_PostProcessor



setWordSeparators
public void setWordSeparators(String value)(Code)
sets the word separators (chars) to use for assembling strings.
Parameters:
  value - the characters to use as separators



setWords
public void setWords(String value)(Code)
Sets the comma-separated list of words to use for generating strings. The list must contain at least 2 words, otherwise an exception will be thrown.
Parameters:
  value - the list of words
throws:
  IllegalArgumentException - if not at least 2 words are provided



Fields inherited from weka.core.Check
protected boolean m_Debug(Code)(Java Doc)
protected boolean m_Silent(Code)(Java Doc)

Methods inherited from weka.core.Check
abstract public void doTests()(Code)(Java Doc)
protected Object forName(String prefix, Class cls, String classname, String[] options) throws Exception(Code)(Java Doc)
public boolean getDebug()(Code)(Java Doc)
public String[] getOptions()(Code)(Java Doc)
public boolean getSilent()(Code)(Java Doc)
public Enumeration listOptions()(Code)(Java Doc)
protected void print(Object msg)(Code)(Java Doc)
protected void println(Object msg)(Code)(Java Doc)
protected void println()(Code)(Java Doc)
protected static void runCheck(Check check, String[] options)(Code)(Java Doc)
public void setDebug(boolean debug)(Code)(Java Doc)
public void setOptions(String[] options) throws Exception(Code)(Java Doc)
public void setSilent(boolean value)(Code)(Java Doc)

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.