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
ConstructorsConstructorDescriptionCTBNHillClimbing(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 aMapwith 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:HillClimbingImplementationFinds a structure for a given PGM.- Specified by:
findStructurein interfaceHillClimbingImplementation- Parameters:
pgm- a probabilistic graphical model- Returns:
- solution given by the hill climbing algorithm
-
findStructure
Description copied from interface:HillClimbingImplementationFinds the local structure of a given node of a PGM.- Specified by:
findStructurein interfaceHillClimbingImplementation- Parameters:
pgm- a probabilistic graphical modelidxNode- node index- Returns:
- a
HillClimbingSolution
-
findStructure
Description copied from interface:HillClimbingImplementationFinds the local structure of some given nodes of a PGM.- Specified by:
findStructurein interfaceHillClimbingImplementation- Parameters:
pgm- a probabilistic graphical modelidxNodes- node indexes- Returns:
- a
HillClimbingSolution
-
getIdentifier
Description copied from interface:HillClimbingImplementationReturns a unique identifier for the hill climbing-based algorithm.- Specified by:
getIdentifierin interfaceHillClimbingImplementation- Returns:
- unique identifier for the hill climbing-based algorithm
-
getInfoScoreFunction
Description copied from interface:HillClimbingImplementationReturns aMapwith the name of the score function that is optimised and the name of the applied penalisation function (if any).- Specified by:
getInfoScoreFunctionin interfaceHillClimbingImplementation- Returns:
- a
Mapwith the name of the score function that is optimised and the name of the penalisation function that is applied
-
getParametersAlgorithm
Description copied from interface:HillClimbingImplementationReturns the parameters that are used by the hill climbing implementation.- Specified by:
getParametersAlgorithmin interfaceHillClimbingImplementation- Returns:
- a
Mapwith the parameters used by the algorithm
-