Java Doc for SVMAttributeEval.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.AttributeEvaluator
         weka.attributeSelection.SVMAttributeEval

SVMAttributeEval
public class SVMAttributeEval extends AttributeEvaluator implements OptionHandler,TechnicalInformationHandler(Code)
SVMAttributeEval :

Evaluates the worth of an attribute by using an SVM classifier. Attributes are ranked by the square of the weight assigned by the SVM. Attribute selection for multiclass problems is handled by ranking attributes for each class seperately using a one-vs-all method and then "dealing" from the top of each pile to give a final ranking.

For more information see:

I. Guyon, J. Weston, S. Barnhill, V. Vapnik (2002). Gene selection for cancer classification using support vector machines. Machine Learning. 46:389-422.

BibTeX:

 @article{Guyon2002,
 author = {I. Guyon and J. Weston and S. Barnhill and V. Vapnik},
 journal = {Machine Learning},
 pages = {389-422},
 title = {Gene selection for cancer classification using support vector machines},
 volume = {46},
 year = {2002}
 }
 

Valid options are:

 -X <constant rate of elimination>
 Specify the constant rate of attribute
 elimination per invocation of
 the support vector machine.
 Default = 1.
 -Y <percent rate of elimination>
 Specify the percentage rate of attributes to
 elimination per invocation of
 the support vector machine.
 Trumps constant rate (above threshold).
 Default = 0.
 -Z <threshold for percent elimination>
 Specify the threshold below which 
 percentage attribute elimination
 reverts to the constant method.
 -P <epsilon>
 Specify the value of P (epsilon
 parameter) to pass on to the
 support vector machine.
 Default = 1.0e-25
 -T <tolerance>
 Specify the value of T (tolerance
 parameter) to pass on to the
 support vector machine.
 Default = 1.0e-10
 -C <complexity>
 Specify the value of C (complexity
 parameter) to pass on to the
 support vector machine.
 Default = 1.0
 -N
 Whether the SVM should 0=normalize/1=standardize/2=neither.
 (default 0=normalize)

author:
   Eibe Frank (eibe@cs.waikato.ac.nz)
author:
   Mark Hall (mhall@cs.waikato.ac.nz)
author:
   Kieran Holland
version:
   $Revision: 1.26 $


Field Summary
final static  longserialVersionUID
    

Constructor Summary
public  SVMAttributeEval()
    

Method Summary
public  StringattsToEliminatePerIterationTipText()
    
public  voidbuildEvaluator(Instances data)
     Initializes the evaluator.
public  StringcomplexityParameterTipText()
    
public  StringepsilonParameterTipText()
    
public  doubleevaluateAttribute(int attribute)
     Evaluates an attribute by returning the rank of the square of its coefficient in a linear support vector machine.
public  StringfilterTypeTipText()
    
public  intgetAttsToEliminatePerIteration()
    
public  CapabilitiesgetCapabilities()
     Returns the capabilities of this evaluator.
public  doublegetComplexityParameter()
    
public  doublegetEpsilonParameter()
    
public  SelectedTaggetFilterType()
    
public  String[]getOptions()
    
public  intgetPercentThreshold()
     Get the threshold below which percentage elimination reverts to constant elimination.
public  intgetPercentToEliminatePerIteration()
    
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  doublegetToleranceParameter()
    
public  StringglobalInfo()
    
public  EnumerationlistOptions()
    
public static  voidmain(String[] args)
     Main method for testing this class.
public  StringpercentThresholdTipText()
    
public  StringpercentToEliminatePerIterationTipText()
    
protected  voidresetOptions()
     Resets options to defaults.
public  voidsetAttsToEliminatePerIteration(int cRate)
    
public  voidsetComplexityParameter(double svmC)
    
public  voidsetEpsilonParameter(double svmP)
    
public  voidsetFilterType(SelectedTag newType)
    
public  voidsetOptions(String[] options)
     Parses a given list of options.
public  voidsetPercentThreshold(int pThresh)
     Set the threshold below which percentage elimination reverts to constant elimination.
public  voidsetPercentToEliminatePerIteration(int pRate)
    
public  voidsetToleranceParameter(double svmT)
    
public  StringtoString()
    
public  StringtoleranceParameterTipText()
    

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




Constructor Detail
SVMAttributeEval
public SVMAttributeEval()(Code)
Constructor




Method Detail
attsToEliminatePerIterationTipText
public String attsToEliminatePerIterationTipText()(Code)
Returns a tip text for this property suitable for display in the GUI tip text string describing this property



buildEvaluator
public void buildEvaluator(Instances data) throws Exception(Code)
Initializes the evaluator.
Parameters:
  data - set of instances serving as training data
throws:
  Exception - if the evaluator has not been generated successfully



complexityParameterTipText
public String complexityParameterTipText()(Code)
Returns a tip text for this property suitable for display in the GUI tip text string describing this property



epsilonParameterTipText
public String epsilonParameterTipText()(Code)
Returns a tip text for this property suitable for display in the GUI tip text string describing this property



evaluateAttribute
public double evaluateAttribute(int attribute) throws Exception(Code)
Evaluates an attribute by returning the rank of the square of its coefficient in a linear support vector machine.
Parameters:
  attribute - the index of the attribute to be evaluated
throws:
  Exception - if the attribute could not be evaluated



filterTypeTipText
public String filterTypeTipText()(Code)
Returns a tip text for this property suitable for display in the GUI tip text string describing this property



getAttsToEliminatePerIteration
public int getAttsToEliminatePerIteration()(Code)
Get the constant rate of attribute elimination per iteration the constant rate of attribute elimination per iteration



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



getComplexityParameter
public double getComplexityParameter()(Code)
Get the value of C used with SMO the value of C



getEpsilonParameter
public double getEpsilonParameter()(Code)
Get the value of P used with SMO the value of P



getFilterType
public SelectedTag getFilterType()(Code)
Get the filtering mode passed to SMO the filtering mode



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



getPercentThreshold
public int getPercentThreshold()(Code)
Get the threshold below which percentage elimination reverts to constant elimination. the threshold below which percentage elimination stops



getPercentToEliminatePerIteration
public int getPercentToEliminatePerIteration()(Code)
Get the percentage rate of attribute elimination per iteration the percentage rate of attribute elimination per iteration



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



getToleranceParameter
public double getToleranceParameter()(Code)
Get the value of T used with SMO the value of T



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 all the available options an enumeration of options



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



percentThresholdTipText
public String percentThresholdTipText()(Code)
Returns a tip text for this property suitable for display in the GUI tip text string describing this property



percentToEliminatePerIterationTipText
public String percentToEliminatePerIterationTipText()(Code)
Returns a tip text for this property suitable for display in the GUI tip text string describing this property



resetOptions
protected void resetOptions()(Code)
Resets options to defaults.



setAttsToEliminatePerIteration
public void setAttsToEliminatePerIteration(int cRate)(Code)
Set the constant rate of attribute elimination per iteration
Parameters:
  cRate - the constant rate of attribute elimination per iteration



setComplexityParameter
public void setComplexityParameter(double svmC)(Code)
Set the value of C for SMO
Parameters:
  svmC - the value of C



setEpsilonParameter
public void setEpsilonParameter(double svmP)(Code)
Set the value of P for SMO
Parameters:
  svmP - the value of P



setFilterType
public void setFilterType(SelectedTag newType)(Code)
The filtering mode to pass to SMO
Parameters:
  newType - the new filtering mode



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

Valid options are:

 -X <constant rate of elimination>
 Specify the constant rate of attribute
 elimination per invocation of
 the support vector machine.
 Default = 1.
 -Y <percent rate of elimination>
 Specify the percentage rate of attributes to
 elimination per invocation of
 the support vector machine.
 Trumps constant rate (above threshold).
 Default = 0.
 -Z <threshold for percent elimination>
 Specify the threshold below which 
 percentage attribute elimination
 reverts to the constant method.
 -P <epsilon>
 Specify the value of P (epsilon
 parameter) to pass on to the
 support vector machine.
 Default = 1.0e-25
 -T <tolerance>
 Specify the value of T (tolerance
 parameter) to pass on to the
 support vector machine.
 Default = 1.0e-10
 -C <complexity>
 Specify the value of C (complexity
 parameter) to pass on to the
 support vector machine.
 Default = 1.0
 -N
 Whether the SVM should 0=normalize/1=standardize/2=neither.
 (default 0=normalize)

Parameters:
  options - the list of options as an array of strings
throws:
  Exception - if an error occurs



setPercentThreshold
public void setPercentThreshold(int pThresh)(Code)
Set the threshold below which percentage elimination reverts to constant elimination.
Parameters:
  pThresh - percent of attributes to eliminate per iteration



setPercentToEliminatePerIteration
public void setPercentToEliminatePerIteration(int pRate)(Code)
Set the percentage of attributes to eliminate per iteration
Parameters:
  pRate - percent of attributes to eliminate per iteration



setToleranceParameter
public void setToleranceParameter(double svmT)(Code)
Set the value of T for SMO
Parameters:
  svmT - the value of T



toString
public String toString()(Code)
Return a description of the evaluator description as a string



toleranceParameterTipText
public String toleranceParameterTipText()(Code)
Returns a tip text for this property suitable for display in the GUI tip text string describing this property



Methods inherited from weka.attributeSelection.AttributeEvaluator
abstract public double evaluateAttribute(int attribute) 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.