Module es.upm.fi.cig.multictbnc
Class CTBNConditionalLogLikelihood
java.lang.Object
es.upm.fi.cig.multictbnc.learning.structure.optimisation.scores.AbstractLikelihood
es.upm.fi.cig.multictbnc.learning.structure.optimisation.scores.ctbn.CTBNConditionalLogLikelihood
- All Implemented Interfaces:
CTBNScoreFunction
Implements the conditional log-likelihood score for Multi-CTBNCs with nodes that have CPTs and CIMs to define its
bridge and feature subgraph (represented by a CTBN). This score is used to perform a discriminative training.
-
Constructor Summary
ConstructorDescriptionCTBNConditionalLogLikelihood
(String penalisationFunction) Receives the name of the penalisation function for the structure complexity. -
Method Summary
Modifier and TypeMethodDescriptiondouble
Computes the (penalised) conditional log-likelihood score of a discrete continuous-time Bayesian network.double
Computes the score of a continuous-time Bayesian network at a given node.Gets an identifier for the score function.boolean
Determines if the score is decomposable.Methods inherited from class es.upm.fi.cig.multictbnc.learning.structure.optimisation.scores.AbstractLikelihood
getNamePenalisationFunction, getPenalisationFunction
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface es.upm.fi.cig.multictbnc.learning.structure.optimisation.scores.ctbn.CTBNScoreFunction
getNamePenalisationFunction
-
Constructor Details
-
CTBNConditionalLogLikelihood
Receives the name of the penalisation function for the structure complexity.- Parameters:
penalisationFunction
- name of the penalisation function
-
-
Method Details
-
compute
Computes the (penalised) conditional log-likelihood score of a discrete continuous-time Bayesian network. This is based on the idea of optimising the conditional log-likelihood proposed by Friedman et al., 1997.- Specified by:
compute
in interfaceCTBNScoreFunction
- Parameters:
ctbn
- a continuous-time Bayesian network- Returns:
- score
-
compute
Description copied from interface:CTBNScoreFunction
Computes the score of a continuous-time Bayesian network at a given node.- Specified by:
compute
in interfaceCTBNScoreFunction
- Parameters:
ctbn
- a continuous-time Bayesian networknodeIndex
- node index- Returns:
- score
-
getIdentifier
Description copied from interface:CTBNScoreFunction
Gets an identifier for the score function.- Specified by:
getIdentifier
in interfaceCTBNScoreFunction
- Returns:
- identifier for the score function.
-
isDecomposable
public boolean isDecomposable()Description copied from interface:CTBNScoreFunction
Determines if the score is decomposable.- Specified by:
isDecomposable
in interfaceCTBNScoreFunction
- Returns:
- true if the score is decomposable, false otherwise
-