Class Puk
java.lang.Object
weka.classifiers.functions.supportVector.Kernel
weka.classifiers.functions.supportVector.CachedKernel
weka.classifiers.functions.supportVector.Puk
- All Implemented Interfaces:
Serializable,CapabilitiesHandler,OptionHandler,RevisionHandler,TechnicalInformationHandler
The Pearson VII function-based universal kernel.
For more information see:
B. Uestuen, W.J. Melssen, L.M.C. Buydens (2006). Facilitating the application of Support Vector Regression by using a universal Pearson VII function based kernel. Chemometrics and Intelligent Laboratory Systems. 81:29-40. Valid options are:
For more information see:
B. Uestuen, W.J. Melssen, L.M.C. Buydens (2006). Facilitating the application of Support Vector Regression by using a universal Pearson VII function based kernel. Chemometrics and Intelligent Laboratory Systems. 81:29-40. Valid options are:
-D Enables debugging output (if available) to be printed. (default: off)
-C <num> The size of the cache (a prime number), 0 for full cache and -1 to turn it off. (default: 250007)
-O <num> The Omega parameter. (default: 1.0)
-S <num> The Sigma parameter. (default: 1.0)
- Version:
- $Revision: 14534 $
- Author:
- Bernhard Pfahringer (bernhard@cs.waikato.ac.nz)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbuildKernel(Instances data) builds the kernel with the given data.Returns the Capabilities of this kernel.doublegetOmega()Gets the omega value.String[]Gets the current settings of the Kernel.Returns the revision string.doublegetSigma()Gets the sigma value.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.Returns a string describing the kernelReturns an enumeration describing the available options.Returns the tip text for this propertyvoidsetOmega(double value) Sets the omega value.voidsetOptions(String[] options) Parses a given list of options.voidsetSigma(double value) Sets the sigma value.Returns the tip text for this propertytoString()returns a string representation for the KernelMethods inherited from class weka.classifiers.functions.supportVector.CachedKernel
cacheSizeTipText, clean, eval, getCacheSize, numCacheHits, numEvals, setCacheSizeMethods inherited from class weka.classifiers.functions.supportVector.Kernel
debugTipText, forName, getChecksTurnedOff, getDebug, getDoNotCheckCapabilities, makeCopies, makeCopy, setChecksTurnedOff, setDebug, setDoNotCheckCapabilities
-
Constructor Details
-
Puk
public Puk()default constructor - does nothing. -
Puk
Constructor. Initializes m_kernelPrecalc[].- Parameters:
data- the data to usecacheSize- the size of the cacheomega- the exponentsigma- the bandwidth- Throws:
Exception- if something goes wrong
-
-
Method Details
-
globalInfo
Returns a string describing the kernel- Specified by:
globalInfoin classKernel- Returns:
- a description suitable for displaying in the explorer/experimenter gui
-
getTechnicalInformation
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.- Specified by:
getTechnicalInformationin interfaceTechnicalInformationHandler- Returns:
- the technical information about this class
-
listOptions
Returns an enumeration describing the available options.- Specified by:
listOptionsin interfaceOptionHandler- Overrides:
listOptionsin classCachedKernel- Returns:
- an enumeration of all the available options.
-
setOptions
Parses a given list of options. Valid options are:-D Enables debugging output (if available) to be printed. (default: off)
-C <num> The size of the cache (a prime number), 0 for full cache and -1 to turn it off. (default: 250007)
-O <num> The Omega parameter. (default: 1.0)
-S <num> The Sigma parameter. (default: 1.0)
- Specified by:
setOptionsin interfaceOptionHandler- Overrides:
setOptionsin classCachedKernel- Parameters:
options- the list of options as an array of strings- Throws:
Exception- if an option is not supported
-
getOptions
Gets the current settings of the Kernel.- Specified by:
getOptionsin interfaceOptionHandler- Overrides:
getOptionsin classCachedKernel- Returns:
- an array of strings suitable for passing to setOptions
-
setOmega
public void setOmega(double value) Sets the omega value.- Parameters:
value- the omega value
-
getOmega
public double getOmega()Gets the omega value.- Returns:
- the omega value
-
omegaTipText
Returns the tip text for this property- Returns:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
setSigma
public void setSigma(double value) Sets the sigma value.- Parameters:
value- the sigma value
-
getSigma
public double getSigma()Gets the sigma value.- Returns:
- the sigma value
-
sigmaTipText
Returns the tip text for this property- Returns:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
getCapabilities
Returns the Capabilities of this kernel.- Specified by:
getCapabilitiesin interfaceCapabilitiesHandler- Overrides:
getCapabilitiesin classKernel- Returns:
- the capabilities of this object
- See Also:
-
buildKernel
builds the kernel with the given data. Initializes the kernel cache. The actual size of the cache in bytes is (64 * cacheSize).- Overrides:
buildKernelin classCachedKernel- Parameters:
data- the data to base the kernel on- Throws:
Exception- if something goes wrong
-
toString
returns a string representation for the Kernel -
getRevision
Returns the revision string.- Specified by:
getRevisionin interfaceRevisionHandler- Overrides:
getRevisionin classKernel- Returns:
- the revision
-