|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.biojava.stats.svm.NestedKernel
org.biojava.stats.svm.DiagonalAddKernel
public class DiagonalAddKernel
Adds a class specific constant to k(x, x).
| Constructor Summary | |
|---|---|
DiagonalAddKernel()
|
|
| Method Summary | |
|---|---|
void |
addNeg(Object o)
|
void |
addPos(Object o)
|
double |
evaluate(Object a,
Object b)
Return the dot product of a, b. |
double |
getLambda()
Retrieve the scale factor. |
void |
setLambda(double l)
Set the scale factor. |
String |
toString()
|
| Methods inherited from class org.biojava.stats.svm.NestedKernel |
|---|
getNestedKernel, setNestedKernel |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DiagonalAddKernel()
| Method Detail |
|---|
public void addPos(Object o)
public void addNeg(Object o)
public void setLambda(double l)
l - the new scale factorpublic double getLambda()
public double evaluate(Object a,
Object b)
This is equal to
k(a, b) + d(a, b) * ||class(a)|| / (||class||)
where d(a, b) is zero if a != b, and 1 if a == b. class(a) is the set of all
items in the same class as a. class is all items with a classification.
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||