Module es.upm.fi.cig.multictbnc
Interface ParameterLearningAlgorithm
- All Known Implementing Classes:
BNBayesianEstimation,BNMaximumLikelihoodEstimation,BNParameterLearningAlgorithm,CTBNBayesianEstimation,CTBNMaximumLikelihoodEstimation,CTBNParameterLearningAlgorithm
public interface ParameterLearningAlgorithm
Interface for parameter learning algorithms.
-
Method Summary
Modifier and TypeMethodDescriptionReturns a unique identifier for the parameter learning algorithm.Gets the name of the method to learn the parameters.Returns the parameters that are used by the algorithm.voidLearns the parameters of a certain node of a PGM.voidLearns the parameters of a certain PGM.voidsetSufficientStatistics(Node node, Dataset dataset) Obtains the sufficient statistics of a BN node.
-
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
Returns the parameters that are used by the algorithm.- Returns:
- a
Mapwith the parameters used by the algorithm
-
learn
Learns the parameters of a certain node of a PGM.- Parameters:
node- node of the PGMdataset- dataset used to learn the parameters
-
learn
Learns the parameters of a certain PGM.- Parameters:
nodes- nodes of the PGMdataset- dataset used to learn the parameters
-
setSufficientStatistics
Obtains the sufficient statistics of a BN node.- Parameters:
node- node whose sufficient statistics will be computeddataset- dataset used to compute the sufficient statistics
-