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.
|
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.
|
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
|
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.
|
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
public Object copy()
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
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()
public 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 © 2019 University of Waikato, Hamilton, NZ. All rights reserved.