Interface StructureLearningAlgorithm

All Known Implementing Classes:
BNHybridStructureLearningAlgorithm, CTBNHybridStructureLearningAlgorithm, CTPC, CTPCHybridAlgorithm, FirstChoiceHillClimbing, HillClimbing, HITONPC, MarkovBlanketCTPC, OnlineMarkovBlanketCTPC, PC, PCHybridAlgorithm, RandomRestartHillClimbing

public interface StructureLearningAlgorithm
Interface used to define algorithms for learning the structure of PGMs.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a unique identifier for the structure learning algorithm.
    Returns the parameters that are used by the algorithm.
    void
    learn(PGM<? extends Node> pgm)
    Learns the structure of a certain PGM.
    void
    learn(PGM<? extends Node> pgm, int idxNode)
    Learn the local structure of a certain node of a PGM.
    void
    learn(PGM<? extends Node> pgm, List<Integer> idxNodes)
    Learns the local structure of certain nodes of a PGM.
  • Method Details

    • getIdentifier

      String getIdentifier()
      Returns a unique identifier for the structure learning algorithm.
      Returns:
      unique identifier for the structure learning algorithm
    • getParametersAlgorithm

      Map<String,String> getParametersAlgorithm()
      Returns the parameters that are used by the algorithm.
      Returns:
      a Map with the parameters used by the algorithm
    • learn

      void learn(PGM<? extends Node> pgm, List<Integer> idxNodes) throws ErroneousValueException
      Learns the local structure of certain nodes of a PGM.
      Parameters:
      pgm - a probabilistic graphical model
      idxNodes - node indexes
      Throws:
      ErroneousValueException - if a parameter provided is invalid for the requested task
    • learn

      void learn(PGM<? extends Node> pgm) throws ErroneousValueException
      Learns the structure of a certain PGM.
      Parameters:
      pgm - a probabilistic graphical model
      Throws:
      ErroneousValueException - if a parameter provided is invalid for the requested task
    • learn

      void learn(PGM<? extends Node> pgm, int idxNode)
      Learn the local structure of a certain node of a PGM.
      Parameters:
      pgm - a probabilistic graphical model
      idxNode - node index