Class CTBNBayesianEstimation

java.lang.Object
es.upm.fi.cig.multictbnc.learning.parameters.ctbn.CTBNParameterLearningAlgorithm
es.upm.fi.cig.multictbnc.learning.parameters.ctbn.CTBNBayesianEstimation
All Implemented Interfaces:
ParameterLearningAlgorithm

public class CTBNBayesianEstimation extends CTBNParameterLearningAlgorithm
Bayesian parameter estimation for a discrete CTBN. The imaginary counts should be defined based on the number of states of the node and its parents, so the total number of imaginary samples is not influenced by the cardinality of those nodes.
  • Constructor Details

    • CTBNBayesianEstimation

      public CTBNBayesianEstimation(double mxyHP, double txHP)
      Constructs a CTBNBayesianEstimation for the Bayesian estimation of the parameters of a discrete CTBN.
      Parameters:
      mxyHP - number of times a variable transitions from a certain state to another one while its parents take a certain instantiation (hyperparameter)
      txHP - time that a variable stays in a certain state while its parents take a certain instantiation (hyperparameter)
  • Method Details

    • getIdentifier

      public String getIdentifier()
      Description copied from interface: ParameterLearningAlgorithm
      Returns a unique identifier for the parameter learning algorithm.
      Returns:
      unique identifier for the parameter learning algorithm
    • getNameMethod

      public String getNameMethod()
      Description copied from interface: ParameterLearningAlgorithm
      Gets the name of the method to learn the parameters.
      Returns:
      name of the method to learn the parameters
    • getParametersAlgorithm

      public Map<String,String> getParametersAlgorithm()
      Description copied from interface: ParameterLearningAlgorithm
      Returns the parameters that are used by the algorithm.
      Returns:
      a Map with the parameters used by the algorithm
    • getSufficientStatisticsNode

      protected CTBNSufficientStatistics getSufficientStatisticsNode(DiscreteStateNode node, Dataset dataset)
      Description copied from class: CTBNParameterLearningAlgorithm
      Returns the sufficient statistics of a DiscreteNode for a given Dataset.
      Specified by:
      getSufficientStatisticsNode in class CTBNParameterLearningAlgorithm
      Parameters:
      node - a DiscreteNode
      dataset - dataset from which the sufficient statistics are extracted
      Returns:
      sufficient statistics of the provided node