Class

com.linkedin.photon.ml.hyperparameter.estimators.kernels

StationaryKernel

Related Doc: package kernels

Permalink

abstract class StationaryKernel extends Kernel

Base trait for stationary covariance kernel functions

Stationary kernels depend on the relative positions of points (e.g. distance), rather than on their absolute positions.

Linear Supertypes
Kernel, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. StationaryKernel
  2. Kernel
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new StationaryKernel(amplitude: Double = 1.0, noise: Double = 1e-4, lengthScale: DenseVector[Double] = DenseVector(1.0))

    Permalink

    amplitude

    the covariance amplitude

    noise

    the observation noise

    lengthScale

    the length scale of the kernel. This controls the complexity of the kernel, or the degree to which it can vary within a given region of the function's domain. Higher values allow less variation, and lower values allow more.

Abstract Value Members

  1. abstract def fromPairwiseDistances(dists: DenseMatrix[Double]): DenseMatrix[Double]

    Permalink

    Computes the kernel function from the pairwise distances between points.

    Computes the kernel function from the pairwise distances between points. Implementing classes should override this to provide the specific kernel computation.

    dists

    the m x p matrix of pairwise distances between m and p points

    returns

    the m x p covariance matrix

    Attributes
    protected[com.linkedin.photon.ml.hyperparameter.estimators.kernels]
  2. abstract def getInitialKernel(x: DenseMatrix[Double], y: DenseVector[Double]): Kernel

    Permalink

    Builds a kernel with initial settings, based on the observations

    Builds a kernel with initial settings, based on the observations

    x

    the observed features

    y

    the observed labels

    returns

    the initial kernel

    Definition Classes
    Kernel
  3. abstract def withParams(theta: DenseVector[Double]): Kernel

    Permalink

    Creates a new kernel function of the same type, with the given parameters

    Creates a new kernel function of the same type, with the given parameters

    theta

    the parameter vector for the new kernel function

    returns

    the new kernel function

    Definition Classes
    Kernel

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val amplitudeScale: Double

    Permalink
  5. def apply(x1: DenseMatrix[Double], x2: DenseMatrix[Double]): DenseMatrix[Double]

    Permalink

    Applies the kernel functions to the two sets of points

    Applies the kernel functions to the two sets of points

    x1

    the matrix containing the first set of points, where each of the m rows is a point in the space

    x2

    the matrix containing the second set of points, where each of the p rows is a point in the space

    returns

    the m x p covariance matrix

    Definition Classes
    StationaryKernelKernel
  6. def apply(x: DenseMatrix[Double]): DenseMatrix[Double]

    Permalink

    Applies the kernel function to the given points

    Applies the kernel function to the given points

    x

    the matrix of points, where each of the m rows is a point in the space

    returns

    the m x m covariance matrix

    Definition Classes
    StationaryKernelKernel
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  11. def expandDimensions(param: DenseVector[Double], dim: Int): DenseVector[Double]

    Permalink

    If only one parameter value has been specified, builds a new vector with the single value repeated to fill all dimensions

    If only one parameter value has been specified, builds a new vector with the single value repeated to fill all dimensions

    param

    the initial parameters

    dim

    the dimensions of the final vector

    returns

    the vector with all dimensions specified

    Definition Classes
    Kernel
  12. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  14. def getParams: DenseVector[Double]

    Permalink

    Returns the kernel parameters as a vector

    Returns the kernel parameters as a vector

    returns

    the kernel parameters

    Definition Classes
    StationaryKernelKernel
  15. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. val lengthScaleMax: Double

    Permalink
  18. def logLikelihood(x: DenseMatrix[Double], y: DenseVector[Double]): Double

    Permalink

    Computes the log likelihood of the kernel parameters

    Computes the log likelihood of the kernel parameters

    x

    the observed features

    y

    the observed labels

    returns

    the log likelihood

    Definition Classes
    StationaryKernelKernel
  19. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. val noiseScale: Double

    Permalink
  21. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. def pairwiseDistances(x1: DenseMatrix[Double], x2: DenseMatrix[Double]): DenseMatrix[Double]

    Permalink

    Computes the pairwise squared distance between the points in two sets

    Computes the pairwise squared distance between the points in two sets

    x1

    the matrix containing the first set of points, where each of the m rows is a point in the space

    x2

    the matrix containing the second set of points, where each of the p rows is a point in the space

    returns

    the m x p matrix of distances

    Attributes
    protected[com.linkedin.photon.ml.hyperparameter.estimators.kernels]
  24. def pairwiseDistances(x: DenseMatrix[Double]): DenseMatrix[Double]

    Permalink

    Computes the pairwise squared distances between all points

    Computes the pairwise squared distances between all points

    x

    the matrix of points, where each of the m rows is a point in the space

    returns

    the m x m matrix of distances

    Attributes
    protected[com.linkedin.photon.ml.hyperparameter.estimators.kernels]
  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  26. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  27. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Kernel

Inherited from AnyRef

Inherited from Any

Ungrouped