Module es.upm.fi.cig.multictbnc
Class FirstChoiceHillClimbing
java.lang.Object
es.upm.fi.cig.multictbnc.learning.structure.optimisation.hillclimbing.HillClimbing
es.upm.fi.cig.multictbnc.learning.structure.optimisation.hillclimbing.FirstChoiceHillClimbing
- All Implemented Interfaces:
StructureLearningAlgorithm
Implements first-choice Hill Climbing.
-
Constructor Summary
ConstructorDescriptionFirstChoiceHillClimbing
(HillClimbingImplementation hcImplementation) Constructs aFirstChoiceHillClimbing
by receiving the implementation of the hill climbing algorithm (for a Bayesian network, continuous-time Bayesian network...). -
Method Summary
Modifier and TypeMethodDescriptionboolean[][]
Performs greedy Hill climbing to find a better structure than the initial one.boolean[][]
findStructure
(int idxNode) Performs greedy Hill climbing to find a better local structure for a given node.boolean[][]
findStructure
(List<Integer> idxNodes) Performs greedy Hill climbing to find a better local structure for some given nodes.Methods inherited from class es.upm.fi.cig.multictbnc.learning.structure.optimisation.hillclimbing.HillClimbing
getIdentifier, getParametersAlgorithm, learn, learn, learn
-
Constructor Details
-
FirstChoiceHillClimbing
Constructs aFirstChoiceHillClimbing
by receiving the implementation of the hill climbing algorithm (for a Bayesian network, continuous-time Bayesian network...).- Parameters:
hcImplementation
- implementation of the hill climbing algorithm
-
-
Method Details
-
findStructure
public boolean[][] findStructure()Description copied from class:HillClimbing
Performs greedy Hill climbing to find a better structure than the initial one.- Specified by:
findStructure
in classHillClimbing
- Returns:
- found adjacency matrix
-
findStructure
public boolean[][] findStructure(int idxNode) Description copied from class:HillClimbing
Performs greedy Hill climbing to find a better local structure for a given node.- Specified by:
findStructure
in classHillClimbing
- Parameters:
idxNode
- node index- Returns:
- adjacency matrix found
-
findStructure
Description copied from class:HillClimbing
Performs greedy Hill climbing to find a better local structure for some given nodes.- Specified by:
findStructure
in classHillClimbing
- Parameters:
idxNodes
- node indexes- Returns:
- adjacency matrix found
-