Class

io.github.mandar2812.dynaml.models.gp

MTGPRegressionModel

Related Doc: package gp

Permalink

class MTGPRegressionModel[I] extends AbstractGPRegressionModel[Seq[Stream[(I, Double)]], (I, Int)]

I

The index set of the GP.

Linear Supertypes
AbstractGPRegressionModel[Seq[Stream[(I, Double)]], (I, Int)], GloballyOptWithGrad, GloballyOptimizable, SecondOrderProcessModel[Seq[Stream[(I, Double)]], (I, Int), Double, Double, DenseMatrix[Double], MultGaussianPRV], ContinuousProcessModel[Seq[Stream[(I, Double)]], (I, Int), Double, MultGaussianPRV], StochasticProcessModel[Seq[Stream[(I, Double)]], (I, Int), Double, MultGaussianPRV], Model[Seq[Stream[(I, Double)]], (I, Int), Double], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MTGPRegressionModel
  2. AbstractGPRegressionModel
  3. GloballyOptWithGrad
  4. GloballyOptimizable
  5. SecondOrderProcessModel
  6. ContinuousProcessModel
  7. StochasticProcessModel
  8. Model
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MTGPRegressionModel(cov: LocalScalarKernel[(I, Int)], n: LocalScalarKernel[(I, Int)], data: Seq[Stream[(I, Double)]], num: Int, numOutputs: Int)

    Permalink

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. def _blockSize: Int

    Permalink
    Definition Classes
    AbstractGPRegressionModel
  5. def _current_state: Map[String, Double]

    Permalink
    Definition Classes
    GloballyOptimizable
  6. def _errorSigma: Int

    Permalink
    Definition Classes
    ContinuousProcessModel
  7. def _hyper_parameters: List[String]

    Permalink
    Definition Classes
    GloballyOptimizable
  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. var blockSize: Int

    Permalink
    Attributes
    protected
    Definition Classes
    AbstractGPRegressionModel
  10. def blockSize_(b: Int): Unit

    Permalink
    Definition Classes
    AbstractGPRegressionModel
  11. var caching: Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    AbstractGPRegressionModel
  12. def calculateEnergyPipe(h: Map[String, Double], options: Map[String, String]): DataPipe2[Seq[(I, Int)], PartitionedVector, Double]

    Permalink

    Returns a DataPipe2 which calculates the energy of data: T.

    Returns a DataPipe2 which calculates the energy of data: T. See: energy below.

    Definition Classes
    AbstractGPRegressionModel
  13. def calculateGradEnergyPipe(h: Map[String, Double]): DataPipe2[Seq[(I, Int)], PartitionedVector, Map[String, Double]]

    Permalink

    Returns a DataPipe which calculates the gradient of the energy, E(.) of data: T with respect to the model hyper-parameters.

    Returns a DataPipe which calculates the gradient of the energy, E(.) of data: T with respect to the model hyper-parameters. See: gradEnergy below.

    Definition Classes
    AbstractGPRegressionModel
  14. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  15. val covariance: LocalScalarKernel[(I, Int)]

    Permalink

    Underlying covariance function of the Gaussian Processes.

    Underlying covariance function of the Gaussian Processes.

    Definition Classes
    AbstractGPRegressionModelSecondOrderProcessModel
  16. var current_state: Map[String, Double]

    Permalink

    A Map which stores the current state of the system.

    A Map which stores the current state of the system.

    Attributes
    protected
    Definition Classes
    AbstractGPRegressionModelGloballyOptimizable
  17. def data: Seq[Stream[(I, Double)]]

    Permalink
    Definition Classes
    Model
  18. def dataAsIndexSeq(data: Seq[Stream[(I, Double)]]): Seq[(I, Int)]

    Permalink

    Convert from the underlying data structure to Seq[I] where I is the index set of the GP

    Convert from the underlying data structure to Seq[I] where I is the index set of the GP

    Definition Classes
    StochasticProcessModel
  19. def dataAsSeq(data: Seq[Stream[(I, Double)]]): Seq[((I, Int), Double)]

    Permalink

    Convert from the underlying data structure to Seq[(I, Y)] where I is the index set of the GP and Y is the value/label type.

    Convert from the underlying data structure to Seq[(I, Y)] where I is the index set of the GP and Y is the value/label type.

    Definition Classes
    MTGPRegressionModelStochasticProcessModel
  20. def energy(h: Map[String, Double], options: Map[String, String]): Double

    Permalink

    Calculates the energy of the configuration, in most global optimization algorithms we aim to find an approximate value of the hyper-parameters such that this function is minimized.

    Calculates the energy of the configuration, in most global optimization algorithms we aim to find an approximate value of the hyper-parameters such that this function is minimized.

    h

    The value of the hyper-parameters in the configuration space

    options

    Optional parameters about configuration

    returns

    Configuration Energy E(h) In this particular case E(h) = -log p(Y|X,h) also known as log likelihood.

    Definition Classes
    AbstractGPRegressionModelGloballyOptimizable
  21. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  23. def errorSigma_(s: Int): Unit

    Permalink
    Definition Classes
    ContinuousProcessModel
  24. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  25. val g: Seq[Stream[(I, Double)]]

    Permalink

    The training data

    The training data

    Attributes
    protected
    Definition Classes
    AbstractGPRegressionModelModel
  26. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  27. def getCrossKernelMatrix[U <: Seq[(I, Int)]](test: U): PartitionedMatrix

    Permalink
    Attributes
    protected
    Definition Classes
    AbstractGPRegressionModel
  28. def getTestKernelMatrix[U <: Seq[(I, Int)]](test: U): PartitionedPSDMatrix

    Permalink
    Attributes
    protected
    Definition Classes
    AbstractGPRegressionModel
  29. def getTrainKernelMatrix[U <: Seq[(I, Int)]]: PartitionedPSDMatrix

    Permalink
    Attributes
    protected
    Definition Classes
    AbstractGPRegressionModel
  30. def gradEnergy(h: Map[String, Double]): Map[String, Double]

    Permalink

    Calculates the gradient energy of the configuration and subtracts this from the current value of h to yield a new hyper-parameter configuration.

    Calculates the gradient energy of the configuration and subtracts this from the current value of h to yield a new hyper-parameter configuration.

    Over ride this function if you aim to implement a gradient based hyper-parameter optimization routine like ML-II

    h

    The value of the hyper-parameters in the configuration space

    returns

    Gradient of the objective function (marginal likelihood) as a Map

    Definition Classes
    AbstractGPRegressionModelGloballyOptWithGrad
  31. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  32. var hyper_parameters: List[String]

    Permalink

    Stores the names of the hyper-parameters

    Stores the names of the hyper-parameters

    Attributes
    protected
    Definition Classes
    AbstractGPRegressionModelGloballyOptimizable
  33. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  34. var kernelMatrixCache: DenseMatrix[Double]

    Permalink
    Attributes
    protected
    Definition Classes
    AbstractGPRegressionModel
  35. val mean: DataPipe[(I, Int), Double]

    Permalink

    The GP is taken to be zero mean, or centered.

    The GP is taken to be zero mean, or centered. This is ensured by standardization of the data before being used for further processing.

    Definition Classes
    AbstractGPRegressionModelSecondOrderProcessModel
  36. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  37. val noiseModel: LocalScalarKernel[(I, Int)]

    Permalink
    Definition Classes
    AbstractGPRegressionModel
  38. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  40. val noutputs: Int

    Permalink
  41. val npoints: Int

    Permalink
    Definition Classes
    AbstractGPRegressionModel
  42. var partitionedKernelMatrixCache: PartitionedPSDMatrix

    Permalink
    Attributes
    protected
    Definition Classes
    AbstractGPRegressionModel
  43. def persist(state: Map[String, Double]): Unit

    Permalink

    Cache the training kernel and noise matrices for fast access in future predictions.

    Cache the training kernel and noise matrices for fast access in future predictions.

    Definition Classes
    AbstractGPRegressionModelGloballyOptimizable
  44. def predict(point: (I, Int)): Double

    Permalink

    Predict the value of the target variable given a point.

    Predict the value of the target variable given a point.

    Definition Classes
    AbstractGPRegressionModelModel
  45. def predictionWithErrorBars[U <: Seq[(I, Int)]](testData: U, sigma: Int): Seq[((I, Int), Double, Double, Double)]

    Permalink

    Draw three predictions from the posterior predictive distribution

    Draw three predictions from the posterior predictive distribution

    • Mean or MAP estimate Y
    • Y- : The lower error bar estimate (mean - sigma*stdDeviation)
    • Y+ : The upper error bar. (mean + sigma*stdDeviation)
    Definition Classes
    AbstractGPRegressionModelContinuousProcessModel
  46. def predictiveDistribution[U <: Seq[(I, Int)]](test: U): MultGaussianPRV

    Permalink

    Calculates posterior predictive distribution for a particular set of test data points.

    Calculates posterior predictive distribution for a particular set of test data points.

    test

    A Sequence or Sequence like data structure storing the values of the input patters.

    Definition Classes
    AbstractGPRegressionModelStochasticProcessModel
  47. def setState(s: Map[String, Double]): MTGPRegressionModel.this.type

    Permalink

    Set the model "state" which contains values of its hyper-parameters with respect to the covariance and noise kernels.

    Set the model "state" which contains values of its hyper-parameters with respect to the covariance and noise kernels.

    Definition Classes
    AbstractGPRegressionModel
  48. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  49. def test(testData: Seq[Stream[(I, Double)]]): Seq[((I, Int), Double, Double, Double, Double)]

    Permalink

    Returns a prediction with error bars for a test set of indexes and labels.

    Returns a prediction with error bars for a test set of indexes and labels. (Index, Actual Value, Prediction, Lower Bar, Higher Bar)

    Definition Classes
    ContinuousProcessModel
  50. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  51. lazy val trainingData: Seq[(I, Int)]

    Permalink
    Attributes
    protected
    Definition Classes
    AbstractGPRegressionModel
  52. lazy val trainingDataLabels: PartitionedVector

    Permalink
    Attributes
    protected
    Definition Classes
    AbstractGPRegressionModel
  53. def unpersist(): Unit

    Permalink

    Forget the cached kernel & noise matrices.

    Forget the cached kernel & noise matrices.

    Definition Classes
    AbstractGPRegressionModel
  54. final def wait(): Unit

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

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

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

Inherited from AbstractGPRegressionModel[Seq[Stream[(I, Double)]], (I, Int)]

Inherited from GloballyOptWithGrad

Inherited from GloballyOptimizable

Inherited from SecondOrderProcessModel[Seq[Stream[(I, Double)]], (I, Int), Double, Double, DenseMatrix[Double], MultGaussianPRV]

Inherited from ContinuousProcessModel[Seq[Stream[(I, Double)]], (I, Int), Double, MultGaussianPRV]

Inherited from StochasticProcessModel[Seq[Stream[(I, Double)]], (I, Int), Double, MultGaussianPRV]

Inherited from Model[Seq[Stream[(I, Double)]], (I, Int), Double]

Inherited from AnyRef

Inherited from Any

Ungrouped