All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dk.bayes.infer.ep.EP.scala Maven / Gradle / Ivy

The newest version!
package dk.bayes.infer.ep

import dk.bayes.model.factor.api.Factor
import dk.bayes.infer.ep.calibrate.fb.EPSummary


/**
 * Expectation Propagation Bayesian Inferece algorithm by Thomas Minka.
 *
 * Thomas P Minka. A family of algorithms for approximate Bayesian inference, 2001
 * Christopher M. Bishop. Pattern Recognition and Machine Learning (Information Science and Statistics), 2009
 *
 * @author Daniel Korzekwa
 */
trait EP {

  /**
   * Sets evidence in a factor graph.
   *
   * @param varId  Variable id
   * @param varValue Variable value
   */
  def setEvidence(varId: Int, varValue: AnyVal)
 
  /**
   * Returns marginal factor for a given variable(s) in a factor graph.
   */
  def marginal(variableId: Int, variablesIds: Int*): Factor
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy