Java Doc for BVDecompose.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.BVDecompose

BVDecompose
public class BVDecompose implements OptionHandler,TechnicalInformationHandler(Code)
Class for performing a Bias-Variance decomposition on any classifier using the method specified in:

Ron Kohavi, David H. Wolpert: Bias Plus Variance Decomposition for Zero-One Loss Functions. In: Machine Learning: Proceedings of the Thirteenth International Conference, 275-283, 1996.

BibTeX:

 @inproceedings{Kohavi1996,
 author = {Ron Kohavi and David H. Wolpert},
 booktitle = {Machine Learning: Proceedings of the Thirteenth International Conference},
 editor = {Lorenza Saitta},
 pages = {275-283},
 publisher = {Morgan Kaufmann},
 title = {Bias Plus Variance Decomposition for Zero-One Loss Functions},
 year = {1996},
 PS = {http://robotics.stanford.edu/~ronnyk/biasVar.ps}
 }
 

Valid options are:

 -c <class index>
 The index of the class attribute.
 (default last)
 -t <name of arff file>
 The name of the arff file used for the decomposition.
 -T <training pool size>
 The number of instances placed in the training pool.
 The remainder will be used for testing. (default 100)
 -s <seed>
 The random number seed used.
 -x <num>
 The number of training repetitions used.
 (default 50)
 -D
 Turn on debugging output.
 -W <classifier class name>
 Full class name of the learner used in the decomposition.
 eg: weka.classifiers.bayes.NaiveBayes
 
 Options specific to learner weka.classifiers.rules.ZeroR:
 
 -D
 If set, classifier is run in debug mode and
 may output additional info to the console
Options after -- are passed to the designated sub-learner.


author:
   Len Trigg (trigg@cs.waikato.ac.nz)
version:
   $Revision: 1.13 $



Field Summary
protected  doublem_Bias
    
protected  intm_ClassIndex
    
protected  Classifierm_Classifier
     An instantiated base classifier used for getting and testing options.
protected  String[]m_ClassifierOptions
     The options to be passed to the base classifier.
protected  Stringm_DataFileName
    
protected  booleanm_Debug
    
protected  doublem_Error
    
protected  intm_Seed
    
protected  doublem_Sigma
    
protected  intm_TrainIterations
    
protected  intm_TrainPoolSize
    
protected  doublem_Variance
    


Method Summary
public  voiddecompose()
    
public  doublegetBias()
    
public  intgetClassIndex()
     Get the index (starting from 1) of the attribute used as the class.
public  ClassifiergetClassifier()
    
public  StringgetDataFileName()
    
public  booleangetDebug()
    
public  doublegetError()
    
public  String[]getOptions()
     Gets the current settings of the CheckClassifier.
public  intgetSeed()
    
public  doublegetSigma()
    
public  TechnicalInformationgetTechnicalInformation()
     Returns an instance of a TechnicalInformation object, containing detailed information about the technical background of this class, e.g., paper reference or book this class is based on.
public  intgetTrainIterations()
    
public  intgetTrainPoolSize()
     Get the number of instances in the training pool.
public  doublegetVariance()
    
public  StringglobalInfo()
    
public  EnumerationlistOptions()
     Returns an enumeration describing the available options.
public static  voidmain(String[] args)
    
public  voidsetClassIndex(int classIndex)
    
public  voidsetClassifier(Classifier newClassifier)
    
public  voidsetDataFileName(String dataFileName)
    
public  voidsetDebug(boolean debug)
    
public  voidsetOptions(String[] options)
     Parses a given list of options.
public  voidsetSeed(int seed)
    
public  voidsetTrainIterations(int trainIterations)
    
public  voidsetTrainPoolSize(int numTrain)
     Set the number of instances in the training pool.
public  StringtoString()
     Returns description of the bias-variance decomposition results.

Field Detail
m_Bias
protected double m_Bias(Code)
The calculated bias (squared)



m_ClassIndex
protected int m_ClassIndex(Code)
The index of the class attribute



m_Classifier
protected Classifier m_Classifier(Code)
An instantiated base classifier used for getting and testing options.



m_ClassifierOptions
protected String[] m_ClassifierOptions(Code)
The options to be passed to the base classifier.



m_DataFileName
protected String m_DataFileName(Code)
The name of the data file used for the decomposition



m_Debug
protected boolean m_Debug(Code)
Debugging mode, gives extra output if true



m_Error
protected double m_Error(Code)
The error rate



m_Seed
protected int m_Seed(Code)
The random number seed



m_Sigma
protected double m_Sigma(Code)
The calculated sigma (squared)



m_TrainIterations
protected int m_TrainIterations(Code)
The number of train iterations



m_TrainPoolSize
protected int m_TrainPoolSize(Code)
The number of instances used in the training pool



m_Variance
protected double m_Variance(Code)
The calculated variance





Method Detail
decompose
public void decompose() throws Exception(Code)
Carry out the bias-variance decomposition
throws:
  Exception - if the decomposition couldn't be carried out



getBias
public double getBias()(Code)
Get the calculated bias squared the bias squared



getClassIndex
public int getClassIndex()(Code)
Get the index (starting from 1) of the attribute used as the class. the index of the class attribute



getClassifier
public Classifier getClassifier()(Code)
Gets the name of the classifier being analysed the classifier being analysed.



getDataFileName
public String getDataFileName()(Code)
Get the name of the data file used for the decomposition the name of the data file



getDebug
public boolean getDebug()(Code)
Gets whether debugging is turned on true if debugging output is on



getError
public double getError()(Code)
Get the calculated error rate the error rate



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



getSeed
public int getSeed()(Code)
Gets the random number seed the random number seed



getSigma
public double getSigma()(Code)
Get the calculated sigma squared the sigma squared



getTechnicalInformation
public TechnicalInformation getTechnicalInformation()(Code)
Returns an instance of a TechnicalInformation object, containing detailed information about the technical background of this class, e.g., paper reference or book this class is based on. the technical information about this class



getTrainIterations
public int getTrainIterations()(Code)
Gets the maximum number of boost iterations the maximum number of boost iterations



getTrainPoolSize
public int getTrainPoolSize()(Code)
Get the number of instances in the training pool. number of instances in the training pool.



getVariance
public double getVariance()(Code)
Get the calculated variance the variance



globalInfo
public String globalInfo()(Code)
Returns a string describing this object a description of the classifier suitable fordisplaying in the explorer/experimenter gui



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



main
public static void main(String[] args)(Code)
Test method for this class
Parameters:
  args - the command line arguments



setClassIndex
public void setClassIndex(int classIndex)(Code)
Sets index of attribute to discretize on
Parameters:
  classIndex - the index (starting from 1) of the class attribute



setClassifier
public void setClassifier(Classifier newClassifier)(Code)
Set the classifiers being analysed
Parameters:
  newClassifier - the Classifier to use.



setDataFileName
public void setDataFileName(String dataFileName)(Code)
Sets the name of the data file used for the decomposition
Parameters:
  dataFileName - the data file to use



setDebug
public void setDebug(boolean debug)(Code)
Sets debugging mode
Parameters:
  debug - true if debug output should be printed



setOptions
public void setOptions(String[] options) throws Exception(Code)
Parses a given list of options.

Valid options are:

 -c <class index>
 The index of the class attribute.
 (default last)
 -t <name of arff file>
 The name of the arff file used for the decomposition.
 -T <training pool size>
 The number of instances placed in the training pool.
 The remainder will be used for testing. (default 100)
 -s <seed>
 The random number seed used.
 -x <num>
 The number of training repetitions used.
 (default 50)
 -D
 Turn on debugging output.
 -W <classifier class name>
 Full class name of the learner used in the decomposition.
 eg: weka.classifiers.bayes.NaiveBayes
 
 Options specific to learner weka.classifiers.rules.ZeroR:
 
 -D
 If set, classifier is run in debug mode and
 may output additional info to the console
Options after -- are passed to the designated sub-learner.


Parameters:
  options - the list of options as an array of strings
throws:
  Exception - if an option is not supported




setSeed
public void setSeed(int seed)(Code)
Sets the random number seed
Parameters:
  seed - the random number seed



setTrainIterations
public void setTrainIterations(int trainIterations)(Code)
Sets the maximum number of boost iterations
Parameters:
  trainIterations - the number of boost iterations



setTrainPoolSize
public void setTrainPoolSize(int numTrain)(Code)
Set the number of instances in the training pool.
Parameters:
  numTrain - number of instances in the training pool.



toString
public String toString()(Code)
Returns description of the bias-variance decomposition results. the bias-variance decomposition results as a string



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.