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


weka.classifiers.RandomizableMultipleClassifiersCombiner
   weka.classifiers.meta.Vote

Vote
public class Vote extends RandomizableMultipleClassifiersCombiner implements TechnicalInformationHandler(Code)
Class for combining classifiers. Different combinations of probability estimates for classification are available.

For more information see:

Ludmila I. Kuncheva (2004). Combining Pattern Classifiers: Methods and Algorithms. John Wiley and Sons, Inc..

J. Kittler, M. Hatef, Robert P.W. Duin, J. Matas (1998). On combining classifiers. IEEE Transactions on Pattern Analysis and Machine Intelligence. 20(3):226-239.

Valid options are:

 -B <classifier specification>
 Full class name of classifier to include, followed
 by scheme options. May be specified multiple times.
 (default: "weka.classifiers.rules.ZeroR")
 -D
 If set, classifier is run in debug mode and
 may output additional info to the console
 -R <AVG|PROD|MAJ|MIN|MAX|MED>
 The combination rule to use
 (default: AVG)
BibTeX:
 @book{Kuncheva2004,
 author = {Ludmila I. Kuncheva},
 publisher = {John Wiley and Sons, Inc.},
 title = {Combining Pattern Classifiers: Methods and Algorithms},
 year = {2004}
 }
 @article{Kittler1998,
 author = {J. Kittler and M. Hatef and Robert P.W. Duin and J. Matas},
 journal = {IEEE Transactions on Pattern Analysis and Machine Intelligence},
 number = {3},
 pages = {226-239},
 title = {On combining classifiers},
 volume = {20},
 year = {1998}
 }
 


author:
   Alexander K. Seewald (alex@seewald.at)
author:
   Eibe Frank (eibe@cs.waikato.ac.nz)
author:
   Roberto Perdisci (roberto.perdisci@gmail.com)
version:
   $Revision: 1.14 $



Field Summary
final public static  intAVERAGE_RULE
    
final public static  intMAJORITY_VOTING_RULE
    
final public static  intMAX_RULE
    
final public static  intMEDIAN_RULE
    
final public static  intMIN_RULE
    
final public static  intPRODUCT_RULE
    
final public static  Tag[]TAGS_RULES
    
protected  intm_CombinationRule
    
protected  Randomm_Random
    
final static  longserialVersionUID
    


Method Summary
public  voidbuildClassifier(Instances data)
     Buildclassifier selects a classifier from the set of classifiers by minimising error on the training data.
public  doubleclassifyInstance(Instance instance)
     Classifies the given test instance.
protected  doubleclassifyInstanceMedian(Instance instance)
     Classifies the given test instance, returning the median from all classifiers.
public  StringcombinationRuleTipText()
    
public  double[]distributionForInstance(Instance instance)
     Classifies a given instance using the selected combination rule.
protected  double[]distributionForInstanceAverage(Instance instance)
     Classifies a given instance using the Average of Probabilities combination rule.
protected  double[]distributionForInstanceMajorityVoting(Instance instance)
     Classifies a given instance using the Majority Voting combination rule.
protected  double[]distributionForInstanceMax(Instance instance)
     Classifies a given instance using the Maximum Probability combination rule.
protected  double[]distributionForInstanceMin(Instance instance)
     Classifies a given instance using the Minimum Probability combination rule.
protected  double[]distributionForInstanceProduct(Instance instance)
     Classifies a given instance using the Product of Probabilities combination rule.
public  CapabilitiesgetCapabilities()
     Returns default capabilities of the classifier.
public  SelectedTaggetCombinationRule()
    
public  String[]getOptions()
     Gets the current settings of Vote.
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  StringglobalInfo()
    
public  EnumerationlistOptions()
     Returns an enumeration describing the available options.
public static  voidmain(String[] argv)
     Main method for testing this class.
public  voidsetCombinationRule(SelectedTag newRule)
     Sets the combination rule to use.
public  voidsetOptions(String[] options)
     Parses a given list of options.
public  StringtoString()
    

Field Detail
AVERAGE_RULE
final public static int AVERAGE_RULE(Code)
combination rule: Average of Probabilities



MAJORITY_VOTING_RULE
final public static int MAJORITY_VOTING_RULE(Code)
combination rule: Majority Voting (only nominal classes)



MAX_RULE
final public static int MAX_RULE(Code)
combination rule: Maximum Probability



MEDIAN_RULE
final public static int MEDIAN_RULE(Code)
combination rule: Median Probability (only numeric class)



MIN_RULE
final public static int MIN_RULE(Code)
combination rule: Minimum Probability



PRODUCT_RULE
final public static int PRODUCT_RULE(Code)
combination rule: Product of Probabilities (only nominal classes)



TAGS_RULES
final public static Tag[] TAGS_RULES(Code)
combination rules



m_CombinationRule
protected int m_CombinationRule(Code)
Combination Rule variable



m_Random
protected Random m_Random(Code)
the random number generator used for breaking ties in majority voting
See Also:   Vote.distributionForInstanceMajorityVoting(Instance)
See Also:   



serialVersionUID
final static long serialVersionUID(Code)
for serialization





Method Detail
buildClassifier
public void buildClassifier(Instances data) throws Exception(Code)
Buildclassifier selects a classifier from the set of classifiers by minimising error on the training data.
Parameters:
  data - the training data to be used for generating theboosted classifier.
throws:
  Exception - if the classifier could not be built successfully



classifyInstance
public double classifyInstance(Instance instance) throws Exception(Code)
Classifies the given test instance.
Parameters:
  instance - the instance to be classified the predicted most likely class for the instance or Instance.missingValue() if no prediction is made
throws:
  Exception - if an error occurred during the prediction



classifyInstanceMedian
protected double classifyInstanceMedian(Instance instance) throws Exception(Code)
Classifies the given test instance, returning the median from all classifiers.
Parameters:
  instance - the instance to be classified the predicted most likely class for the instance or Instance.missingValue() if no prediction is made
throws:
  Exception - if an error occurred during the prediction



combinationRuleTipText
public String combinationRuleTipText()(Code)
Returns the tip text for this property tip text for this property suitable fordisplaying in the explorer/experimenter gui



distributionForInstance
public double[] distributionForInstance(Instance instance) throws Exception(Code)
Classifies a given instance using the selected combination rule.
Parameters:
  instance - the instance to be classified the distribution
throws:
  Exception - if instance could not be classifiedsuccessfully



distributionForInstanceAverage
protected double[] distributionForInstanceAverage(Instance instance) throws Exception(Code)
Classifies a given instance using the Average of Probabilities combination rule.
Parameters:
  instance - the instance to be classified the distribution
throws:
  Exception - if instance could not be classifiedsuccessfully



distributionForInstanceMajorityVoting
protected double[] distributionForInstanceMajorityVoting(Instance instance) throws Exception(Code)
Classifies a given instance using the Majority Voting combination rule.
Parameters:
  instance - the instance to be classified the distribution
throws:
  Exception - if instance could not be classifiedsuccessfully



distributionForInstanceMax
protected double[] distributionForInstanceMax(Instance instance) throws Exception(Code)
Classifies a given instance using the Maximum Probability combination rule.
Parameters:
  instance - the instance to be classified the distribution
throws:
  Exception - if instance could not be classifiedsuccessfully



distributionForInstanceMin
protected double[] distributionForInstanceMin(Instance instance) throws Exception(Code)
Classifies a given instance using the Minimum Probability combination rule.
Parameters:
  instance - the instance to be classified the distribution
throws:
  Exception - if instance could not be classifiedsuccessfully



distributionForInstanceProduct
protected double[] distributionForInstanceProduct(Instance instance) throws Exception(Code)
Classifies a given instance using the Product of Probabilities combination rule.
Parameters:
  instance - the instance to be classified the distribution
throws:
  Exception - if instance could not be classifiedsuccessfully



getCapabilities
public Capabilities getCapabilities()(Code)
Returns default capabilities of the classifier. the capabilities of this classifier



getCombinationRule
public SelectedTag getCombinationRule()(Code)
Gets the combination rule used the combination rule used



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



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



globalInfo
public String globalInfo()(Code)
Returns a string describing classifier a description 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[] argv)(Code)
Main method for testing this class.
Parameters:
  argv - should contain the following arguments:-t training file [-T test file] [-c class index]



setCombinationRule
public void setCombinationRule(SelectedTag newRule)(Code)
Sets the combination rule to use. Values other than
Parameters:
  newRule - the combination rule method to use



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

Valid options are:

 -B <classifier specification>
 Full class name of classifier to include, followed
 by scheme options. May be specified multiple times.
 (default: "weka.classifiers.rules.ZeroR")
 -D
 If set, classifier is run in debug mode and
 may output additional info to the console
 -R <AVG|PROD|MAJ|MIN|MAX|MED>
 The combination rule to use
 (default: AVG)

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



toString
public String toString()(Code)
Output a representation of this classifier a string representation of the classifier



Fields inherited from weka.classifiers.RandomizableMultipleClassifiersCombiner
protected int m_Seed(Code)(Java Doc)

Methods inherited from weka.classifiers.RandomizableMultipleClassifiersCombiner
public String[] getOptions()(Code)(Java Doc)
public int getSeed()(Code)(Java Doc)
public Enumeration listOptions()(Code)(Java Doc)
public String seedTipText()(Code)(Java Doc)
public void setOptions(String[] options) throws Exception(Code)(Java Doc)
public void setSeed(int seed)(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.