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


java.lang.Object
   weka.attributeSelection.ASEvaluation
      weka.attributeSelection.SubsetEvaluator
         weka.attributeSelection.WrapperSubsetEval

WrapperSubsetEval
public class WrapperSubsetEval extends SubsetEvaluator implements OptionHandler,TechnicalInformationHandler(Code)
WrapperSubsetEval:

Evaluates attribute sets by using a learning scheme. Cross validation is used to estimate the accuracy of the learning scheme for a set of attributes.

For more information see:

Ron Kohavi, George H. John (1997). Wrappers for feature subset selection. Artificial Intelligence. 97(1-2):273-324.

BibTeX:

 @article{Kohavi1997,
 author = {Ron Kohavi and George H. John},
 journal = {Artificial Intelligence},
 note = {Special issue on relevance},
 number = {1-2},
 pages = {273-324},
 title = {Wrappers for feature subset selection},
 volume = {97},
 year = {1997},
 ISSN = {0004-3702}
 }
 

Valid options are:

 -B <base learner>
 class name of base learner to use for  accuracy estimation.
 Place any classifier options LAST on the command line
 following a "--". eg.:
 -B weka.classifiers.bayes.NaiveBayes ... -- -K
 (default: weka.classifiers.rules.ZeroR)
 -F <num>
 number of cross validation folds to use for estimating accuracy.
 (default=5)
 -R <seed>
 Seed for cross validation accuracy testimation.
 (default = 1)
 -T <num>
 threshold by which to execute another cross validation
 (standard deviation---expressed as a percentage of the mean).
 (default: 0.01 (1%))
 
 Options specific to scheme weka.classifiers.rules.ZeroR:
 
 -D
 If set, classifier is run in debug mode and
 may output additional info to the console

author:
   Mark Hall (mhall@cs.waikato.ac.nz)
version:
   $Revision: 1.29 $


Field Summary
final static  longserialVersionUID
    

Constructor Summary
public  WrapperSubsetEval()
     Constructor.

Method Summary
public  voidbuildEvaluator(Instances data)
     Generates a attribute evaluator.
public  StringclassifierTipText()
    
public  doubleevaluateSubset(BitSet subset)
    
public  StringfoldsTipText()
    
public  CapabilitiesgetCapabilities()
     Returns the capabilities of this evaluator.
public  ClassifiergetClassifier()
     Get the classifier used as the base learner.
public  intgetFolds()
    
public  String[]getOptions()
     Gets the current settings of WrapperSubsetEval.
public  intgetSeed()
    
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  doublegetThreshold()
    
public  StringglobalInfo()
    
public  EnumerationlistOptions()
     Returns an enumeration describing the available options.
public static  voidmain(String[] args)
     Main method for testing this class.
protected  voidresetOptions()
    
public  StringseedTipText()
    
public  voidsetClassifier(Classifier newClassifier)
    
public  voidsetFolds(int f)
    
public  voidsetOptions(String[] options)
     Parses a given list of options.
public  voidsetSeed(int s)
    
public  voidsetThreshold(double t)
    
public  StringthresholdTipText()
    
public  StringtoString()
    

Field Detail
serialVersionUID
final static long serialVersionUID(Code)
for serialization




Constructor Detail
WrapperSubsetEval
public WrapperSubsetEval()(Code)
Constructor. Calls restOptions to set default options




Method Detail
buildEvaluator
public void buildEvaluator(Instances data) throws Exception(Code)
Generates a attribute evaluator. Has to initialize all fields of the evaluator that are not being set via options.
Parameters:
  data - set of instances serving as training data
throws:
  Exception - if the evaluator has not been generated successfully



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



evaluateSubset
public double evaluateSubset(BitSet subset) throws Exception(Code)
Evaluates a subset of attributes
Parameters:
  subset - a bitset representing the attribute subset to be evaluated the error rate
throws:
  Exception - if the subset could not be evaluated



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



getCapabilities
public Capabilities getCapabilities()(Code)
Returns the capabilities of this evaluator. the capabilities of this evaluator
See Also:   Capabilities



getClassifier
public Classifier getClassifier()(Code)
Get the classifier used as the base learner. the classifier used as the classifier



getFolds
public int getFolds()(Code)
Get the number of folds used for accuracy estimation the number of folds



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



getSeed
public int getSeed()(Code)
Get the random number seed used for cross validation the seed



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



getThreshold
public double getThreshold()(Code)
Get the value of the threshold the threshold as a double



globalInfo
public String globalInfo()(Code)
Returns a string describing this attribute evaluator a description of the evaluator 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)
Main method for testing this class.
Parameters:
  args - the options



resetOptions
protected void resetOptions()(Code)



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



setClassifier
public void setClassifier(Classifier newClassifier)(Code)
Set the classifier to use for accuracy estimation
Parameters:
  newClassifier - the Classifier to use.



setFolds
public void setFolds(int f)(Code)
Set the number of folds to use for accuracy estimation
Parameters:
  f - the number of folds



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

Valid options are:

 -B <base learner>
 class name of base learner to use for  accuracy estimation.
 Place any classifier options LAST on the command line
 following a "--". eg.:
 -B weka.classifiers.bayes.NaiveBayes ... -- -K
 (default: weka.classifiers.rules.ZeroR)
 -F <num>
 number of cross validation folds to use for estimating accuracy.
 (default=5)
 -R <seed>
 Seed for cross validation accuracy testimation.
 (default = 1)
 -T <num>
 threshold by which to execute another cross validation
 (standard deviation---expressed as a percentage of the mean).
 (default: 0.01 (1%))
 
 Options specific to scheme weka.classifiers.rules.ZeroR:
 
 -D
 If set, classifier is run in debug mode and
 may output additional info to the console

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



setSeed
public void setSeed(int s)(Code)
Set the seed to use for cross validation
Parameters:
  s - the seed



setThreshold
public void setThreshold(double t)(Code)
Set the value of the threshold for repeating cross validation
Parameters:
  t - the value of the threshold



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



toString
public String toString()(Code)
Returns a string describing the wrapper the description as a string



Methods inherited from weka.attributeSelection.SubsetEvaluator
abstract public double evaluateSubset(BitSet subset) throws Exception(Code)(Java Doc)

Methods inherited from weka.attributeSelection.ASEvaluation
abstract public void buildEvaluator(Instances data) throws Exception(Code)(Java Doc)
public static ASEvaluation forName(String evaluatorName, String[] options) throws Exception(Code)(Java Doc)
public Capabilities getCapabilities()(Code)(Java Doc)
public static ASEvaluation[] makeCopies(ASEvaluation model, int num) throws Exception(Code)(Java Doc)
public int[] postProcess(int[] attributeSet) throws Exception(Code)(Java Doc)
protected static void runEvaluator(ASEvaluation evaluator, String[] options)(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.