dk.bayes.clustergraph.infer

LoopyBP

Related Docs: object LoopyBP | package infer

case class LoopyBP(clusterGraph: ClusterGraph, threshold: Double = 0.00001) extends ClusterGraphInfer with Product with Serializable

Loopy BP calibration and inference in a cluster graph, presented in 'Daphne Koller, Nir Friedman. Probabilistic Graphical Models, Principles and Techniques, 2009' book.

clusterGraph
threshold

Maximum absolute difference between old and new corresponding messages in a cluster graph, before calibration is completed

Linear Supertypes
Serializable, Serializable, Product, Equals, ClusterGraphInfer, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. LoopyBP
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. ClusterGraphInfer
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new LoopyBP(clusterGraph: ClusterGraph, threshold: Double = 0.00001)

    clusterGraph
    threshold

    Maximum absolute difference between old and new corresponding messages in a cluster graph, before calibration is completed

Value Members

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

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

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

    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. def calibrate(iterNum: (Int) ⇒ Unit = (iterNum: Int) => {}, messageOrder: MessageOrder = ForwardBackwardMsgOrder()): Unit

    Calibrates cluster graph.

    Calibrates cluster graph.

    iterNum

    Progress monitoring. It is called by this method at the beginning of every iteration

    messageOrder

    Order of clusters in which messages are sent for a single iteration of Belief Propagation

    Definition Classes
    LoopyBPClusterGraphInfer
  6. def calibrateWithEvidence(evidence: Seq[(Int, Int)], iterNum: (Int) ⇒ Unit = (iterNum: Int) => {}): Double

    Applies evidence and calibrates cluster graph.

    Applies evidence and calibrates cluster graph.

    evidence

    Sequence of Tuple2[variableId, variable value]

    iterNum

    Progress monitoring. It is called by this method at the beginning of every iteration

    returns

    Log likelihood of evidence in a cluster graph.

    Definition Classes
    LoopyBPClusterGraphInfer
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def clusterBelief(clusterId: Int): Factor

    Returns cluster belief.

    Returns cluster belief.

    clusterId

    Unique cluster id

    Definition Classes
    LoopyBPClusterGraphInfer
  9. val clusterGraph: ClusterGraph

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

    Definition Classes
    AnyRef
  11. def finalize(): Unit

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

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

    Definition Classes
    Any
  14. def logLikelihood(assignment: Array[(Int, Int)]): Double

    Returns log likelihood of assignment for all variables in a cluster graph.

    Returns log likelihood of assignment for all variables in a cluster graph.

    assignment

    Array of Tuple2[variableId, variable value]

    Definition Classes
    LoopyBPClusterGraphInfer
  15. def marginal(variableId: Int): Factor

    Returns marginal factor for a variable in a cluster graph.

    Returns marginal factor for a variable in a cluster graph.

    Definition Classes
    LoopyBPClusterGraphInfer
  16. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  17. final def notify(): Unit

    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  19. def setEvidence(evidence: (Int, Int)): Unit

    Sets evidence in a cluster graph.

    Sets evidence in a cluster graph. Once evidence is set in a cluster graph, it cannot be reverted.

    evidence

    Tuple2[variableId, variable value]

    Definition Classes
    LoopyBPClusterGraphInfer
  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  21. val threshold: Double

    Maximum absolute difference between old and new corresponding messages in a cluster graph, before calibration is completed

  22. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from ClusterGraphInfer

Inherited from AnyRef

Inherited from Any

Ungrouped