public class PrecomputedKernelMatrixKernel extends Kernel implements Copyable
-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)
| Constructor and Description |
|---|
PrecomputedKernelMatrixKernel() |
| Modifier and Type | Method and Description |
|---|---|
void |
clean()
Frees the memory used by the kernel.
|
java.lang.Object |
copy()
Return a shallow copy of this 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.
|
java.io.File |
getKernelMatrixFile()
Gets the file containing the kernel matrix.
|
java.lang.String[] |
getOptions()
Gets the current settings of the Kernel.
|
java.lang.String |
getRevision()
Returns the revision string.
|
java.lang.String |
globalInfo()
Returns a string describing the kernel
|
java.lang.String |
kernelMatrixFileTipText()
Returns the tip text for this property
|
java.util.Enumeration<Option> |
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.
|
void |
setKernelMatrixFile(java.io.File f)
Sets the file holding the kernel matrix
|
void |
setOptions(java.lang.String[] options)
Parses a given list of options.
|
java.lang.String |
toString()
returns a string representation for the Kernel
|
buildKernel, checksTurnedOffTipText, debugTipText, doNotCheckCapabilitiesTipText, forName, getChecksTurnedOff, getDebug, getDoNotCheckCapabilities, makeCopies, makeCopy, setChecksTurnedOff, setDebug, setDoNotCheckCapabilitiespublic java.lang.Object copy()
public java.lang.String globalInfo()
globalInfo in class Kernelpublic java.util.Enumeration<Option> listOptions()
listOptions in interface OptionHandlerlistOptions in class Kernelpublic void setOptions(java.lang.String[] options)
throws java.lang.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 OptionHandlersetOptions in class Kerneloptions - the list of options as an array of stringsjava.lang.Exception - if an option is not supportedpublic java.lang.String[] getOptions()
getOptions in interface OptionHandlergetOptions in class Kernelpublic double eval(int id1,
int id2,
Instance inst1)
throws java.lang.Exception
Kernelpublic Capabilities getCapabilities()
getCapabilities in interface CapabilitiesHandlergetCapabilities in class KernelCapabilitiespublic void setKernelMatrixFile(java.io.File f)
f - the file holding the matrixpublic java.io.File getKernelMatrixFile()
public java.lang.String kernelMatrixFileTipText()
public java.lang.String toString()
toString in class java.lang.Objectpublic void clean()
public int numEvals()
public int numCacheHits()
numCacheHits in class Kernelpublic java.lang.String getRevision()
getRevision in interface RevisionHandlergetRevision in class Kernel