public class RadialBaseKernel extends NestedKernelThis kernel computes the radial base kernel that corresponds to a gausian distribution.
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.
- Matthew Pocock
- See Also:
- Serialized Form
All Methods Instance Methods Concrete Methods Modifier and Type Method Description
evaluate(Object a, Object b)Return the dot product of two vectors in an arbitrary feature space.
evaluateDescription copied from interface:
SVMKernelReturn the dot product of two vectors in an arbitrary feature space. In this implementation, the `vectors' can actually be arbitrary objects.
public double getWidth()
public void setWidth(double width)