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

public class FirstChoiceHillClimbing extends HillClimbing
Implements first-choice Hill Climbing.
  • Constructor Details

    • FirstChoiceHillClimbing

      public FirstChoiceHillClimbing(HillClimbingImplementation hcImplementation)
      Constructs a FirstChoiceHillClimbing 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 class HillClimbing
      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 class HillClimbing
      Parameters:
      idxNode - node index
      Returns:
      adjacency matrix found
    • findStructure

      public boolean[][] findStructure(List<Integer> idxNodes)
      Description copied from class: HillClimbing
      Performs greedy Hill climbing to find a better local structure for some given nodes.
      Specified by:
      findStructure in class HillClimbing
      Parameters:
      idxNodes - node indexes
      Returns:
      adjacency matrix found