|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.classifiers.functions.supportVector.Kernel
Abstract kernel. Kernels implementing this class must respect Mercer's condition in order to ensure a correct behaviour of SMOreg.
Field Summary | |
(package private) Instances |
m_data
The dataset |
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 |
numEvals()
Returns the number of kernel evaluation performed. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
Instances m_data
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 dataset
java.lang.Exception
public abstract void clean()
public abstract int numEvals()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |