Module es.upm.fi.cig.multictbnc
Class CTBNHillClimbing
java.lang.Object
es.upm.fi.cig.multictbnc.learning.structure.optimisation.hillclimbing.implementation.CTBNHillClimbing
- All Implemented Interfaces:
HillClimbingImplementation
Implements hill climbing algorithm for CTBNs. This class is used with scores that cannot be optimised by finding the
best parent set for each node individually. This is the case of, for example, the conditional log-likelihood.
-
Constructor Summary
ConstructorDescriptionCTBNHillClimbing
(CTBNScoreFunction scoreFunction) Constructor that receives the score function to optimise. -
Method Summary
Modifier and TypeMethodDescriptionfindStructure
(PGM<? extends Node> pgm) Finds a structure for a given PGM.findStructure
(PGM<? extends Node> pgm, int idxNode) Finds the local structure of a given node of a PGM.findStructure
(PGM<? extends Node> pgm, List<Integer> idxNodes) Finds the local structure of some given nodes of a PGM.Returns a unique identifier for the hill climbing-based algorithm.Returns aMap
with the name of the score function that is optimised and the name of the applied penalisation function (if any).Returns the parameters that are used by the hill climbing implementation.
-
Constructor Details
-
CTBNHillClimbing
Constructor that receives the score function to optimise.- Parameters:
scoreFunction
- score function for continuous-time Bayesian networks
-
-
Method Details
-
findStructure
Description copied from interface:HillClimbingImplementation
Finds a structure for a given PGM.- Specified by:
findStructure
in interfaceHillClimbingImplementation
- Parameters:
pgm
- a probabilistic graphical model- Returns:
- solution given by the hill climbing algorithm
-
findStructure
Description copied from interface:HillClimbingImplementation
Finds the local structure of a given node of a PGM.- Specified by:
findStructure
in interfaceHillClimbingImplementation
- Parameters:
pgm
- a probabilistic graphical modelidxNode
- node index- Returns:
- a
HillClimbingSolution
-
findStructure
Description copied from interface:HillClimbingImplementation
Finds the local structure of some given nodes of a PGM.- Specified by:
findStructure
in interfaceHillClimbingImplementation
- Parameters:
pgm
- a probabilistic graphical modelidxNodes
- node indexes- Returns:
- a
HillClimbingSolution
-
getIdentifier
Description copied from interface:HillClimbingImplementation
Returns a unique identifier for the hill climbing-based algorithm.- Specified by:
getIdentifier
in interfaceHillClimbingImplementation
- Returns:
- unique identifier for the hill climbing-based algorithm
-
getInfoScoreFunction
Description copied from interface:HillClimbingImplementation
Returns aMap
with the name of the score function that is optimised and the name of the applied penalisation function (if any).- Specified by:
getInfoScoreFunction
in interfaceHillClimbingImplementation
- Returns:
- a
Map
with the name of the score function that is optimised and the name of the penalisation function that is applied
-
getParametersAlgorithm
Description copied from interface:HillClimbingImplementation
Returns the parameters that are used by the hill climbing implementation.- Specified by:
getParametersAlgorithm
in interfaceHillClimbingImplementation
- Returns:
- a
Map
with the parameters used by the algorithm
-