Class

com.github.gradientgmm.optim

ConjugatePrior

Related Doc: package optim

Permalink

class ConjugatePrior extends Regularizer

Implementation of conjugate prior regularization; this means an Inverse-Wishart prior over the covariance matrices, a Normal prior over the means and a Dirichlet distribution prior over the weights.

Linear Supertypes
Regularizer, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ConjugatePrior
  2. Regularizer
  3. Serializable
  4. Serializable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ConjugatePrior(dim: Int, k: Int)

    Permalink

    dim

    Data dimensionality

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. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. val dim: Int

    Permalink

    Data dimensionality

  7. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  9. def evaluateDist(dist: UpdatableGaussianComponent): Double

    Permalink

    Evaluate regularization term for a Gaussian component

    Evaluate regularization term for a Gaussian component

    dist

    Mixture component

    returns

    regularization value

    Definition Classes
    ConjugatePriorRegularizer
  10. def evaluateWeights(weights: DenseVector[Double]): Double

    Permalink

    Evaluate regularization term for the weights vector

    Evaluate regularization term for the weights vector

    weights

    model weights vector

    returns

    regularization value

    Definition Classes
    ConjugatePriorRegularizer
  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. def gaussianGradient(dist: UpdatableGaussianComponent): DenseMatrix[Double]

    Permalink

    Computes the loss function's gradient w.r.t a Gaussian component's parameters

    Computes the loss function's gradient w.r.t a Gaussian component's parameters

    dist

    Mixture component

    returns

    gradient

    Definition Classes
    ConjugatePriorRegularizer
  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  14. def getDf: Double

    Permalink
  15. def getDirichletParam: Double

    Permalink
  16. def getIwMean: DenseMatrix[Double]

    Permalink
  17. def getNormalMean: DenseVector[Double]

    Permalink
  18. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  20. val k: Int

    Permalink
  21. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  24. var regularizingMatrix: DenseMatrix[Double]

    Permalink

    Block matrix of prior parameters [A B; C D].

    Block matrix of prior parameters [A B; C D]. The blocks are:

    A = iwMean + kappa * normalMean * normalMean.t

    B = kappa * normalMean

    C = kappa * normalMean.t

    D = kappa

    kappa = degFrredom + dim + 2

  25. def setDf(df: Double): ConjugatePrior.this.type

    Permalink

    set degrees of freedom for the Inverse-Wishart prior

    set degrees of freedom for the Inverse-Wishart prior

    df

    Degrees of freedom

  26. def setDirichletParam(alpha: Double): ConjugatePrior.this.type

    Permalink
  27. def setMeanAndCovExpVals(normalMean: DenseVector[Double], iwMean: DenseMatrix[Double]): ConjugatePrior.this.type

    Permalink

    Set Gaussian parameters' prior means.

    Set Gaussian parameters' prior means. The Gaussian parameter prior means must be set at the same time to check that the dimensions match

    normalMean

    Expected value vector for the prior Normal distribution

    iwMean

    Expected value matrix for the prior Inverse-Wishart distribution

  28. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. def weightsGradient(weights: DenseVector[Double]): DenseVector[Double]

    Permalink

    Computes the loss function's gradient with respect to the current weights vector

    Computes the loss function's gradient with respect to the current weights vector

    weights

    current weights vector

    returns

    gradient

    Definition Classes
    ConjugatePriorRegularizer

Inherited from Regularizer

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped