|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectweka.classifiers.functions.supportVector.Kernel
public abstract class Kernel
Abstract kernel. Kernels implementing this class must respect Mercer's condition in order to ensure a correct behaviour of SMOreg.
| Constructor Summary | |
|---|---|
Kernel()
|
|
| Method Summary | |
|---|---|
abstract void |
clean()
Frees the memory used by the kernel. |
abstract double |
eval(int id1,
int id2,
Instance inst1)
Computes the result of the kernel function for two instances. |
abstract int |
numCacheHits()
Returns the number of dot product cache hits. |
abstract int |
numEvals()
Returns the number of kernel evaluation performed. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Kernel()
| Method Detail |
|---|
public abstract double eval(int id1,
int id2,
Instance inst1)
throws java.lang.Exception
id1 - the index of the first instance in the datasetid2 - the index of the second instance in the datasetinst - the instance corresponding to id1 (used if id1 == -1)
java.lang.Exceptionpublic abstract void clean()
public abstract int numEvals()
public abstract int numCacheHits()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||