Module es.upm.fi.cig.multictbnc
Class CTBNLogLikelihood
java.lang.Object
es.upm.fi.cig.multictbnc.learning.structure.optimisation.scores.AbstractLikelihood
es.upm.fi.cig.multictbnc.learning.structure.optimisation.scores.ctbn.CTBNLogLikelihood
- All Implemented Interfaces:
CTBNScoreFunction
Implements the log-likelihood score for CTBNs with nodes that have CIMs.
-
Constructor Summary
ConstructorDescriptionCTBNLogLikelihood
(String penalisationFunction) Receives the name of the penalisation function for the structure complexity. -
Method Summary
Modifier and TypeMethodDescriptiondouble
Computes the score for a continuous-time Bayesian network.double
Computes the (penalised) log-likelihood score at a given node of a discrete continuous-time Bayesian network.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
-
CTBNLogLikelihood
Receives the name of the penalisation function for the structure complexity.- Parameters:
penalisationFunction
- name of the penalisation function
-
-
Method Details
-
compute
Description copied from interface:CTBNScoreFunction
Computes the score for a continuous-time Bayesian network.- Specified by:
compute
in interfaceCTBNScoreFunction
- Parameters:
ctbn
- a continuous-time Bayesian network- Returns:
- score
-
compute
Computes the (penalised) log-likelihood score at a given node of a discrete continuous-time Bayesian network.- Specified by:
compute
in interfaceCTBNScoreFunction
- Parameters:
ctbn
- continuous-time Bayesian networkidxNode
- index of the node- Returns:
- penalised log-likelihood score
-
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
-
getIdentifier
Description copied from interface:CTBNScoreFunction
Gets an identifier for the score function.- Specified by:
getIdentifier
in interfaceCTBNScoreFunction
- Returns:
- identifier for the score function.
-