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


java.lang.Object
   weka.classifiers.functions.supportVector.Kernel
      weka.classifiers.functions.supportVector.CachedKernel
         weka.classifiers.functions.supportVector.PolyKernel

All known Subclasses:   weka.classifiers.functions.supportVector.NormalizedPolyKernel,  weka.classifiers.mi.supportVector.MIPolyKernel,
PolyKernel
public class PolyKernel extends CachedKernel (Code)
The polynomial kernel : K(x, y) = <x, y>^p or K(x, y) = (<x, y>+1)^p

Valid options are:

 -D
 Enables debugging output (if available) to be printed.
 (default: off)
 -no-checks
 Turns off all checks - use with caution!
 (default: checks on)
 -C <num>
 The size of the cache (a prime number).
 (default: 250007)
 -E <num>
 The Exponent to use.
 (default: 1.0)
 -L
 Use lower-order terms.
 (default: no)

author:
   Eibe Frank (eibe@cs.waikato.ac.nz)
author:
   Shane Legg (shane@intelligenesis.net) (sparse vector code)
author:
   Stuart Inglis (stuart@reeltwo.com) (sparse vector code)
version:
   $Revision: 1.6 $


Field Summary
protected  doublem_exponent
     The exponent for the polynomial kernel.
protected  booleanm_lowerOrder
    
final static  longserialVersionUID
    

Constructor Summary
public  PolyKernel()
     default constructor - does nothing.
public  PolyKernel(Instances data, int cacheSize, double exponent, boolean lowerOrder)
     Creates a new PolyKernel instance.

Method Summary
protected  doubleevaluate(int id1, int id2, Instance inst1)
    
public  StringexponentTipText()
    
public  CapabilitiesgetCapabilities()
     Returns the Capabilities of this kernel.
public  doublegetExponent()
     Gets the exponent value.
public  String[]getOptions()
     Gets the current settings of the Kernel.
public  booleangetUseLowerOrder()
     Gets whether lower-order terms are used.
public  StringglobalInfo()
    
public  EnumerationlistOptions()
     Returns an enumeration describing the available options.
public  voidsetExponent(double value)
     Sets the exponent value.
public  voidsetOptions(String[] options)
     Parses a given list of options.
public  voidsetUseLowerOrder(boolean value)
     Sets whether to use lower-order terms.
public  StringtoString()
    
public  StringuseLowerOrderTipText()
    

Field Detail
m_exponent
protected double m_exponent(Code)
The exponent for the polynomial kernel.



m_lowerOrder
protected boolean m_lowerOrder(Code)
Use lower-order terms?



serialVersionUID
final static long serialVersionUID(Code)
for serialization




Constructor Detail
PolyKernel
public PolyKernel()(Code)
default constructor - does nothing.



PolyKernel
public PolyKernel(Instances data, int cacheSize, double exponent, boolean lowerOrder) throws Exception(Code)
Creates a new PolyKernel instance.
Parameters:
  data - the training dataset used.
Parameters:
  cacheSize - the size of the cache (a prime number)
Parameters:
  exponent - the exponent to use
Parameters:
  lowerOrder - whether to use lower-order terms
throws:
  Exception - if something goes wrong




Method Detail
evaluate
protected double evaluate(int id1, int id2, Instance inst1) throws Exception(Code)

Parameters:
  id1 - the index of instance 1
Parameters:
  id2 - the index of instance 2
Parameters:
  inst1 - the instance 1 object the dot product
throws:
  Exception - if something goes wrong



exponentTipText
public String exponentTipText()(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 kernel. the capabilities of this object
See Also:   Capabilities



getExponent
public double getExponent()(Code)
Gets the exponent value. the exponent value



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



getUseLowerOrder
public boolean getUseLowerOrder()(Code)
Gets whether lower-order terms are used. true if lower-order terms are used



globalInfo
public String globalInfo()(Code)
Returns a string describing the kernel a description suitable for displaying in theexplorer/experimenter gui



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



setExponent
public void setExponent(double value)(Code)
Sets the exponent value.
Parameters:
  value - the exponent value



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

Valid options are:

 -D
 Enables debugging output (if available) to be printed.
 (default: off)
 -no-checks
 Turns off all checks - use with caution!
 (default: checks on)
 -C <num>
 The size of the cache (a prime number).
 (default: 250007)
 -E <num>
 The Exponent to use.
 (default: 1.0)
 -L
 Use lower-order terms.
 (default: no)

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



setUseLowerOrder
public void setUseLowerOrder(boolean value)(Code)
Sets whether to use lower-order terms.
Parameters:
  value - true if lower-order terms will be used



toString
public String toString()(Code)
returns a string representation for the Kernel a string representaiton of the kernel



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



Fields inherited from weka.classifiers.functions.supportVector.CachedKernel
protected int m_cacheHits(Code)(Java Doc)
protected int m_cacheSize(Code)(Java Doc)
protected int m_cacheSlots(Code)(Java Doc)
protected int m_kernelEvals(Code)(Java Doc)
protected double[][] m_kernelMatrix(Code)(Java Doc)
protected long[] m_keys(Code)(Java Doc)
protected int m_numInsts(Code)(Java Doc)
protected double[] m_storage(Code)(Java Doc)

Methods inherited from weka.classifiers.functions.supportVector.CachedKernel
public void buildKernel(Instances data) throws Exception(Code)(Java Doc)
public String cacheSizeTipText()(Code)(Java Doc)
public void clean()(Code)(Java Doc)
final protected double dotProd(Instance inst1, Instance inst2) throws Exception(Code)(Java Doc)
public double eval(int id1, int id2, Instance inst1) throws Exception(Code)(Java Doc)
abstract protected double evaluate(int id1, int id2, Instance inst1) throws Exception(Code)(Java Doc)
public int getCacheSize()(Code)(Java Doc)
public String[] getOptions()(Code)(Java Doc)
protected void initVars(Instances data)(Code)(Java Doc)
public Enumeration listOptions()(Code)(Java Doc)
public int numCacheHits()(Code)(Java Doc)
public int numEvals()(Code)(Java Doc)
public void setCacheSize(int value)(Code)(Java Doc)
public void setOptions(String[] options) throws Exception(Code)(Java Doc)

Fields inherited from weka.classifiers.functions.supportVector.Kernel
protected boolean m_ChecksTurnedOff(Code)(Java Doc)
protected boolean m_Debug(Code)(Java Doc)
protected Instances m_data(Code)(Java Doc)

Methods inherited from weka.classifiers.functions.supportVector.Kernel
public void buildKernel(Instances data) throws Exception(Code)(Java Doc)
public String checksTurnedOffTipText()(Code)(Java Doc)
abstract public void clean()(Code)(Java Doc)
public String debugTipText()(Code)(Java Doc)
abstract public double eval(int id1, int id2, Instance inst1) throws Exception(Code)(Java Doc)
public static Kernel forName(String kernelName, String[] options) throws Exception(Code)(Java Doc)
public Capabilities getCapabilities()(Code)(Java Doc)
public boolean getChecksTurnedOff()(Code)(Java Doc)
public boolean getDebug()(Code)(Java Doc)
public String[] getOptions()(Code)(Java Doc)
abstract public String globalInfo()(Code)(Java Doc)
protected void initVars(Instances data)(Code)(Java Doc)
public Enumeration listOptions()(Code)(Java Doc)
public static Kernel[] makeCopies(Kernel model, int num) throws Exception(Code)(Java Doc)
public static Kernel makeCopy(Kernel kernel) throws Exception(Code)(Java Doc)
abstract public int numCacheHits()(Code)(Java Doc)
abstract public int numEvals()(Code)(Java Doc)
public void setChecksTurnedOff(boolean value)(Code)(Java Doc)
public void setDebug(boolean value)(Code)(Java Doc)
public void setOptions(String[] options) throws Exception(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.