public class PrecomputedKernelMatrixKernel extends Kernel
-D Enables debugging output (if available) to be printed. (default: off)
-no-checks Turns off all checks - use with caution! (default: checks on)
-M <file name> The file name of the file that holds the kernel matrix. (default: kernelMatrix.matrix)
Modifier and Type | Field and Description |
---|---|
protected int |
m_Counter
A classifier counter.
|
protected Matrix |
m_KernelMatrix
The kernel matrix.
|
protected File |
m_KernelMatrixFile
The file holding the kernel matrix.
|
m_ChecksTurnedOff, m_data, m_Debug
Constructor and Description |
---|
PrecomputedKernelMatrixKernel() |
Modifier and Type | Method and Description |
---|---|
void |
clean()
Frees the memory used by the kernel.
|
double |
eval(int id1,
int id2,
Instance inst1)
Computes the result of the kernel function for two instances.
|
Capabilities |
getCapabilities()
Returns the Capabilities of this kernel.
|
File |
getKernelMatrixFile()
Gets the file containing the kernel matrix.
|
String[] |
getOptions()
Gets the current settings of the Kernel.
|
String |
getRevision()
Returns the revision string.
|
String |
globalInfo()
Returns a string describing the kernel
|
protected void |
initVars(Instances data)
initializes variables etc.
|
String |
kernelMatrixFileTipText()
Returns the tip text for this property
|
Enumeration |
listOptions()
Returns an enumeration describing the available options.
|
int |
numCacheHits()
Returns the number of dot product cache hits.
|
int |
numEvals()
Returns the number of kernel evaluation performed.
|
protected void |
setKernelMatrix(Matrix km)
Set the kernel matrix.
|
void |
setKernelMatrixFile(File f)
Sets the file holding the kernel matrix
|
void |
setOptions(String[] options)
Parses a given list of options.
|
String |
toString()
returns a string representation for the Kernel
|
buildKernel, checksTurnedOffTipText, debugTipText, forName, getChecksTurnedOff, getDebug, makeCopies, makeCopy, setChecksTurnedOff, setDebug
protected File m_KernelMatrixFile
protected Matrix m_KernelMatrix
protected int m_Counter
public String globalInfo()
globalInfo
in class Kernel
public Enumeration listOptions()
listOptions
in interface OptionHandler
listOptions
in class Kernel
public void setOptions(String[] options) throws Exception
-D Enables debugging output (if available) to be printed. (default: off)
-no-checks Turns off all checks - use with caution! (default: checks on)
-M <file name> The file name of the file that holds the kernel matrix. (default: kernelMatrix.matrix)
setOptions
in interface OptionHandler
setOptions
in class Kernel
options
- the list of options as an array of stringsException
- if an option is not supportedpublic String[] getOptions()
getOptions
in interface OptionHandler
getOptions
in class Kernel
public double eval(int id1, int id2, Instance inst1) throws Exception
Kernel
protected void initVars(Instances data)
public Capabilities getCapabilities()
getCapabilities
in interface CapabilitiesHandler
getCapabilities
in class Kernel
Capabilities
public void setKernelMatrixFile(File f)
value
- the exponent valuepublic File getKernelMatrixFile()
public String kernelMatrixFileTipText()
protected void setKernelMatrix(Matrix km)
km
- the kernel matrix to usepublic String toString()
public void clean()
public int numEvals()
public int numCacheHits()
numCacheHits
in class Kernel
public String getRevision()
getRevision
in interface RevisionHandler
getRevision
in class Kernel
Copyright © 2015 University of Waikato, Hamilton, NZ. All rights reserved.