java.lang.Object
es.upm.fi.cig.multictbnc.learning.structure.optimisation.scores.AbstractLikelihood
es.upm.fi.cig.multictbnc.learning.structure.optimisation.scores.bn.BNLogLikelihood
All Implemented Interfaces:
BNScoreFunction

public class BNLogLikelihood extends AbstractLikelihood implements BNScoreFunction
Implements the log-likelihood score for Bayesian networks with nodes that have CPTs.
  • Constructor Details

    • BNLogLikelihood

      public BNLogLikelihood(String penalisationFunction)
      Receives the name of the penalisation function for the structure complexity.
      Parameters:
      penalisationFunction - name of the penalisation function
  • Method Details

    • compute

      public double compute(BN<? extends Node> bn)
      Computes the (penalised) log-likelihood score for a discrete Bayesian network. This is done by computing the marginal log-likelihood of the graph. A uniform prior structure is assumed.
      Specified by:
      compute in interface BNScoreFunction
      Parameters:
      bn - a Bayesian network
      Returns:
      penalised log-likelihood score
    • getIdentifier

      public String getIdentifier()
      Description copied from interface: BNScoreFunction
      Gets an identifier for the score function.
      Specified by:
      getIdentifier in interface BNScoreFunction
      Returns:
      identifier for the score function.