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

Class BinarySparseLinearKernel

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


    public class BinarySparseLinearKernel
    extends java.lang.Object
    implements MercerKernel<int[]>, java.io.Serializable
    The linear dot product kernel on sparse binary arrays in int[], which are the indices of nonzero elements. When using a linear kernel, input space is identical to feature space.
    See Also:
    Serialized Form
    • Method Summary

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

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

      • BinarySparseLinearKernel

        public BinarySparseLinearKernel()
        Constructor.
    • Method Detail

      • toString

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

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

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.