Class PolynomialKernel

  • All Implemented Interfaces:
    java.io.Serializable, SVMKernel

    public class PolynomialKernel
    extends NestedKernel
    This kernel computes all possible products of order features in feature space. This is done by computing (a.k(i,j) + c)^order for some other kernel k that defines a dot product in some feature space.
    Author:
    Thomas Down, Matthew Pocock
    See Also:
    Serialized Form
    • Method Detail

      • evaluate

        public double evaluate​(java.lang.Object a,
                               java.lang.Object b)
        Description copied from interface: SVMKernel
        Return the dot product of two vectors in an arbitrary feature space. In this implementation, the `vectors' can actually be arbitrary objects.
      • setOrder

        public void setOrder​(double o)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object