Interface ParameterLearningAlgorithm

All Known Implementing Classes:
BNBayesianEstimation, BNMaximumLikelihoodEstimation, BNParameterLearningAlgorithm, CTBNBayesianEstimation, CTBNMaximumLikelihoodEstimation, CTBNParameterLearningAlgorithm

public interface ParameterLearningAlgorithm
Interface for parameter learning algorithms.
  • Method Details

    • getIdentifier

      String getIdentifier()
      Returns a unique identifier for the parameter learning algorithm.
      Returns:
      unique identifier for the parameter learning algorithm
    • getNameMethod

      String getNameMethod()
      Gets the name of the method to learn the parameters.
      Returns:
      name of the method to learn the parameters
    • 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(Node node, Dataset dataset)
      Learns the parameters of a certain node of a PGM.
      Parameters:
      node - node of the PGM
      dataset - dataset used to learn the parameters
    • learn

      void learn(List<? extends Node> nodes, Dataset dataset)
      Learns the parameters of a certain PGM.
      Parameters:
      nodes - nodes of the PGM
      dataset - dataset used to learn the parameters
    • setSufficientStatistics

      void setSufficientStatistics(Node node, Dataset dataset)
      Obtains the sufficient statistics of a BN node.
      Parameters:
      node - node whose sufficient statistics will be computed
      dataset - dataset used to compute the sufficient statistics