public class NormalizedPolyKernel extends PolyKernel
-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)
-E <num> The Exponent to use. (default: 1.0)
-L Use lower-order terms. (default: no)
Constructor and Description |
---|
NormalizedPolyKernel()
default constructor - does nothing
|
NormalizedPolyKernel(Instances dataset,
int cacheSize,
double exponent,
boolean lowerOrder)
Creates a new
NormalizedPolyKernel instance. |
Modifier and Type | Method and Description |
---|---|
void |
buildKernel(Instances data)
builds the kernel with the given data.
|
void |
clean()
Frees the cache used by the kernel.
|
java.lang.String |
getRevision()
Returns the revision string.
|
java.lang.String |
globalInfo()
Returns a string describing the kernel
|
java.lang.String |
toString()
returns a string representation for the Kernel
|
exponentTipText, getCapabilities, getExponent, getOptions, getUseLowerOrder, listOptions, setExponent, setOptions, setUseLowerOrder, useLowerOrderTipText
cacheSizeTipText, eval, getCacheSize, numCacheHits, numEvals, setCacheSize
debugTipText, forName, getChecksTurnedOff, getDebug, getDoNotCheckCapabilities, makeCopies, makeCopy, setChecksTurnedOff, setDebug, setDoNotCheckCapabilities
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
makeCopy
public NormalizedPolyKernel()
public NormalizedPolyKernel(Instances dataset, int cacheSize, double exponent, boolean lowerOrder) throws java.lang.Exception
NormalizedPolyKernel
instance.dataset
- the training dataset used.cacheSize
- the size of the cache (a prime number)exponent
- the exponent to uselowerOrder
- whether to use lower-order termsjava.lang.Exception
- if something goes wrongpublic void buildKernel(Instances data) throws java.lang.Exception
buildKernel
in class CachedKernel
data
- the data to base the kernel onjava.lang.Exception
- if something goes wrongpublic void clean()
clean
in class CachedKernel
public java.lang.String globalInfo()
globalInfo
in class PolyKernel
public java.lang.String toString()
toString
in class PolyKernel
public java.lang.String getRevision()
getRevision
in interface RevisionHandler
getRevision
in class PolyKernel