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


weka.classifiers.RandomizableSingleClassifierEnhancer
   weka.classifiers.meta.nestedDichotomies.ClassBalancedND

ClassBalancedND
public class ClassBalancedND extends RandomizableSingleClassifierEnhancer implements TechnicalInformationHandler(Code)
A meta classifier for handling multi-class datasets with 2-class classifiers by building a random class-balanced tree structure.

For more info, check

Lin Dong, Eibe Frank, Stefan Kramer: Ensembles of Balanced Nested Dichotomies for Multi-class Problems. In: PKDD, 84-95, 2005.

Eibe Frank, Stefan Kramer: Ensembles of nested dichotomies for multi-class problems. In: Twenty-first International Conference on Machine Learning, 2004.

BibTeX:

 @inproceedings{Dong2005,
 author = {Lin Dong and Eibe Frank and Stefan Kramer},
 booktitle = {PKDD},
 pages = {84-95},
 publisher = {Springer},
 title = {Ensembles of Balanced Nested Dichotomies for Multi-class Problems},
 year = {2005}
 }
 @inproceedings{Frank2004,
 author = {Eibe Frank and Stefan Kramer},
 booktitle = {Twenty-first International Conference on Machine Learning},
 publisher = {ACM},
 title = {Ensembles of nested dichotomies for multi-class problems},
 year = {2004}
 }
 

Valid options are:

 -S <num>
 Random number seed.
 (default 1)
 -D
 If set, classifier is run in debug mode and
 may output additional info to the console
 -W
 Full name of base classifier.
 (default: weka.classifiers.trees.J48)
 
 Options specific to classifier weka.classifiers.trees.J48:
 
 -U
 Use unpruned tree.
 -C <pruning confidence>
 Set confidence threshold for pruning.
 (default 0.25)
 -M <minimum number of instances>
 Set minimum number of instances per leaf.
 (default 2)
 -R
 Use reduced error pruning.
 -N <number of folds>
 Set number of folds for reduced error
 pruning. One fold is used as pruning set.
 (default 3)
 -B
 Use binary splits only.
 -S
 Don't perform subtree raising.
 -L
 Do not clean up after the tree has been built.
 -A
 Laplace smoothing for predicted probabilities.
 -Q <seed>
 Seed for random data shuffling (default 1).

author:
   Lin Dong
author:
   Eibe Frank


Field Summary
protected  FilteredClassifierm_FilteredClassifier
     The filtered classifier in which the base classifier is wrapped.
protected  ClassBalancedNDm_FirstSuccessor
    
protected  Rangem_Range
    
protected  ClassBalancedNDm_SecondSuccessor
    
protected  Hashtablem_classifiers
     The hashtable for this node.
protected  booleanm_hashtablegiven
    
final static  longserialVersionUID
    

Constructor Summary
public  ClassBalancedND()
     Constructor.

Method Summary
public  voidbuildClassifier(Instances data)
     Builds tree recursively.
protected  StringdefaultClassifierString()
     String describing default classifier.
public  double[]distributionForInstance(Instance inst)
    
public  CapabilitiesgetCapabilities()
     Returns default capabilities of the classifier.
public  StringgetString(int[] indices)
     Returns the list of indices as a string.
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 static  voidmain(String[] argv)
     Main method for testing this class.
public  voidsetHashtable(Hashtable table)
     Set hashtable from END.
public  StringtoString()
     Outputs the classifier as a string.

Field Detail
m_FilteredClassifier
protected FilteredClassifier m_FilteredClassifier(Code)
The filtered classifier in which the base classifier is wrapped.



m_FirstSuccessor
protected ClassBalancedND m_FirstSuccessor(Code)
The first successor



m_Range
protected Range m_Range(Code)
The classes that are grouped together at the current node



m_SecondSuccessor
protected ClassBalancedND m_SecondSuccessor(Code)
The second successor



m_classifiers
protected Hashtable m_classifiers(Code)
The hashtable for this node.



m_hashtablegiven
protected boolean m_hashtablegiven(Code)
Is Hashtable given from END?



serialVersionUID
final static long serialVersionUID(Code)
for serialization




Constructor Detail
ClassBalancedND
public ClassBalancedND()(Code)
Constructor.




Method Detail
buildClassifier
public void buildClassifier(Instances data) throws Exception(Code)
Builds tree recursively.
Parameters:
  data - contains the (multi-class) instances
throws:
  Exception - if the building fails



defaultClassifierString
protected String defaultClassifierString()(Code)
String describing default classifier. the default classifier classname



distributionForInstance
public double[] distributionForInstance(Instance inst) throws Exception(Code)
Predicts the class distribution for a given instance
Parameters:
  inst - the (multi-class) instance to be classified the class distribution
throws:
  Exception - if computing fails



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



getString
public String getString(int[] indices)(Code)
Returns the list of indices as a string.
Parameters:
  indices - the indices to return as string the indices as string



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)
a description of the classifier suitable fordisplaying in the explorer/experimenter gui



main
public static void main(String[] argv)(Code)
Main method for testing this class.
Parameters:
  argv - the options



setHashtable
public void setHashtable(Hashtable table)(Code)
Set hashtable from END.
Parameters:
  table - the hashtable to use



toString
public String toString()(Code)
Outputs the classifier as a string. a string representation of the classifier



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

Methods inherited from weka.classifiers.RandomizableSingleClassifierEnhancer
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.