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

epic.framework.Marginal.scala Maven / Gradle / Ivy

There is a newer version: 0.4.4
Show newest version
package epic.framework

/**
 * Marginals are created by [[epic.framework.Inference]] objects and used for expected counts and
 * decoding, where applicable. Max Marginals (i.e. a one best list) are totally fine if you want
 * to do max-margin work.
 *
 * They only have one method: logPartition. Most of the work is done with Inference objects directly.
 *
 * @author dlwh
 */
trait Marginal {
  def logPartition: Double
}

trait VisitableMarginal[Visitor] extends Marginal {
  def visit(visitor: Visitor)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy