public class RadialBaseKernel extends NestedKernel
The formula for this is exp( -||a - b|| / (2* width ^ 2))
. The
term a-b can be represented in an arbitrary feature space by using a nested
kernel k, and becomes k(a, a) + k(b, b) - 2 * k(a, b)
.
As k(x, x) is required repeatedly, I suggest using a DiagonalCachingKernel as the immediately nested kernel function.
Constructor and Description |
---|
RadialBaseKernel() |
RadialBaseKernel(SVMKernel nested,
double width) |
Modifier and Type | Method and Description |
---|---|
double |
evaluate(Object a,
Object b)
Return the dot product of two vectors in an arbitrary
feature space.
|
double |
getWidth() |
void |
setWidth(double width) |
String |
toString() |
getNestedKernel, setNestedKernel
public RadialBaseKernel()
public RadialBaseKernel(SVMKernel nested, double width)
public double evaluate(Object a, Object b)
SVMKernel
public double getWidth()
public void setWidth(double width)
Copyright © 2014 BioJava. All rights reserved.