Module es.upm.fi.cig.multictbnc
Class CTBNParameterLearningAlgorithm
java.lang.Object
es.upm.fi.cig.multictbnc.learning.parameters.ctbn.CTBNParameterLearningAlgorithm
- All Implemented Interfaces:
ParameterLearningAlgorithm
- Direct Known Subclasses:
CTBNBayesianEstimation,CTBNMaximumLikelihoodEstimation
public abstract class CTBNParameterLearningAlgorithm
extends Object
implements ParameterLearningAlgorithm
Define methods for parameter learning algorithms of continuous-time Bayesian networks.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidestimateParameters(CIMNode node) Estimates the parameters for a given node from its computed sufficient statistics.protected abstract CTBNSufficientStatisticsgetSufficientStatisticsNode(DiscreteStateNode node, Dataset dataset) Returns the sufficient statistics of aDiscreteNodefor a givenDataset.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.voidsetSufficientStatistics(List<? extends Node> nodes, Dataset dataset) Obtains the sufficient statistics of each node of a CTBN.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface es.upm.fi.cig.multictbnc.learning.parameters.ParameterLearningAlgorithm
getIdentifier, getNameMethod, getParametersAlgorithm
-
Constructor Details
-
CTBNParameterLearningAlgorithm
public CTBNParameterLearningAlgorithm()
-
-
Method Details
-
setSufficientStatistics
Obtains the sufficient statistics of each node of a CTBN.- Parameters:
nodes- list of nodesdataset- dataset used to compute the sufficient statistics
-
learn
Description copied from interface:ParameterLearningAlgorithmLearns the parameters of a certain node of a PGM.- Specified by:
learnin interfaceParameterLearningAlgorithm- Parameters:
node- node of the PGMdataset- dataset used to learn the parameters
-
learn
Description copied from interface:ParameterLearningAlgorithmLearns the parameters of a certain PGM.- Specified by:
learnin interfaceParameterLearningAlgorithm- Parameters:
nodes- nodes of the PGMdataset- dataset used to learn the parameters
-
setSufficientStatistics
Description copied from interface:ParameterLearningAlgorithmObtains the sufficient statistics of a BN node.- Specified by:
setSufficientStatisticsin interfaceParameterLearningAlgorithm- Parameters:
node- node whose sufficient statistics will be computeddataset- dataset used to compute the sufficient statistics
-
estimateParameters
Estimates the parameters for a given node from its computed sufficient statistics. Two parameters that summarise the CIMs of each variable are estimated. The first one contains the probabilities of the variables leaving a state and the second one the probabilities of leaving a state for a certain one.- Parameters:
node- node with sufficient statistics where it is stored the computed parameters
-
getSufficientStatisticsNode
protected abstract CTBNSufficientStatistics getSufficientStatisticsNode(DiscreteStateNode node, Dataset dataset) Returns the sufficient statistics of aDiscreteNodefor a givenDataset.- Parameters:
node- aDiscreteNodedataset- dataset from which the sufficient statistics are extracted- Returns:
- sufficient statistics of the provided node
-