Documentation of 'smile.math.kernel.PolynomialKernel' Java class
PolynomialKernel
smile.math.kernel

Class PolynomialKernel

  • All Implemented Interfaces:
    java.io.Serializable, MercerKernel<double[]>


    public class PolynomialKernel
    extends java.lang.Object
    implements MercerKernel<double[]>, java.io.Serializable
    The polynomial kernel. k(u, v) = (γ uTv - λ)d, where γ is the scale of the used inner product, λ the offset of the used inner product, and d the order of the polynomial kernel.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor and Description
      PolynomialKernel(int degree)
      Constructor with scale 1 and bias 0.
      PolynomialKernel(int degree, double scale, double offset)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      double k(double[] x, double[] y)
      Kernel function.
      java.lang.String toString() 
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • PolynomialKernel

        public PolynomialKernel(int degree)
        Constructor with scale 1 and bias 0.
      • PolynomialKernel

        public PolynomialKernel(int degree,
                                double scale,
                                double offset)
        Constructor.
    • Method Detail

      • toString

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

        public double k(double[] x,
                        double[] y)
        Description copied from interface: MercerKernel
        Kernel function.
        Specified by:
        k in interface MercerKernel<double[]>

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.