|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weka.classifiers.functions.supportVector.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 |
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 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 |
Copyright (c) 2003 David Lindsay, Computer Learning Research Centre, Dept. Computer Science, Royal Holloway, University of London