Dynamic Bayesian Network Learning and Inference
Returns a vector with the number of consecutive nodes in each level
Adds the mu vector and sigma matrix as attributes to the bn.fit or dbn...
Calculate the AIC of a dynamic Bayesian network
Calculate the AIC of a dynamic Bayesian network
Check if two fitted networks are equal to each other
Check if two network structures are equal to each other
Performs approximate inference in a time slice of the dbn
Performs approximate inference forecasting with the GDBN over a datase...
Converts a single row data.table into a named vector
Convert a network structure into a model string
Calculate the BIC of a dynamic Bayesian network
Calculate the BIC of a dynamic Bayesian network
Experimental function that translates a natPosition vector into a DBN ...
Calculate the mu vector of means of a Gaussian linear network. This is...
Calculate the mu vector from a fitted BN or DBN
Calculate the sigma covariance matrix of a Gaussian linear network. Th...
Calculate the sigma covariance matrix from a fitted BN or DBN
Replacement function for parameters inside DBNs
R6 class that defines causal lists in the PSO
Checks if the vector of names are time formatted to t_0
Create a matrix with the arcs defined in a causlist object
Extracts the coefficients of a DBN
Creates the blacklist of arcs from a folded data.table
Create a causal list from a DBN. This is the C++ backend of the functi...
Create a natural causal list from a DBN. This is the C++ backend of th...
If the names of the nodes have "_t_0" appended at the end, remove it
Multiply a Velocity by a constant real number
Calculates the degree of a list of nodes
Calculates the degree of a list of nodes
Calculates the degree of a list of nodes
Calculates the degree of a list of nodes
Calculates the degree of a list of nodes
Learns the structure of a markovian n DBN model from data
Gets the ordering of a single time slice in a DBN
Performs exact inference smoothing with the GDBN over a dataset
Performs exact inference forecasting with the GDBN over a dataset
Performs exact inference in a time slice of the dbn
Extends the names of the nodes in t_0 to t_(max-1)
Filter the instances in a data.table with different ids in each row
Fold a dataset avoiding overlapping of different time series
Fits a markovian n DBN model
Extracts the fitted values of a DBN
Widens the dataset to take into account the t previous time slices
Widens the dataset to take into account the t previous time slices
Performs forecasting with the GDBN over a dataset
Generate a random DBN and a sampled dataset
Initialize the nodes vector
Initialize the particles
Create a causality list and initialize it
Learns the structure of a markovian n DBN model from data
Calculate the log-likelihood of a dynamic Bayesian network
Calculate the log-likelihood of a dynamic Bayesian network
Average the parameters of multiple dbn.fit objects with identical stru...
Merges and replicates the arcs in the static BN into all the time-slic...
Performs inference over a multivariate normal distribution
Create a matrix with the arcs defined in a causlist object
Multiply a Velocity by a constant real number
Subtracts two natPositions to obtain the natVelocity that transforms p...
Add a velocity to a position
Adds two natVelocities
R6 class that defines causal lists in the PSO
R6 class that defines a Particle in the PSO algorithm
R6 class that defines DBNs as vectors of natural numbers
R6 class that defines the PSO controller
Learn a DBN structure with a PSO approach
R6 class that defines velocities in the PSO
Defines a level for every node in the net
Generates the names of the nodes in t_0 and in all the network
Relabel the names of the nodes of a BN or a DBN
Relabel the names of the nodes of a BN or a DBN
Relabel the names of the nodes of a BN or a DBN
Relabel the names of the nodes of a BN or a DBN
Relabel the names of the nodes of a BN or a DBN
Returns a list with the names of the nodes of a BN or a DBN
Returns a list with the names of the nodes of a BN or a DBN
Returns a list with the names of the nodes of a BN or a DBN
Returns a list with the names of the nodes of a BN or a DBN
Returns a list with the names of the nodes of a BN or a DBN
One-hot encoder for natural numbers without the 0
One hot encoder for natural numbers without the 0.
Generates the names of n variables.
R6 class that defines a Particle in the PSO algorithm
Plots a dynamic Bayesian network in a hierarchical way
Plots a Bayesian network in a hierarchical way
Plots a fitted dynamic Bayesian network
Plots a dynamic Bayesian network
Subtracts two Positions to obtain the Velocity that transforms one int...
Add a velocity to a position
R6 class that defines DBNs as causality lists
Performs inference over a fitted GBN
Performs inference over a test dataset with a GBN
Performs inference in every row of a dataset with a DBN
Print method for "dbn.fit" objects
Print method for "dbn" objects
R6 class that defines the PSO controller
Learn a DBN structure with a PSO approach
Randomize a velocity with the given probabilities
Simulates random samples from a fitted DBN
Experimental function that recounts the number of arcs in the position
Reduce the frequency of the time series data in a data.table
Return a list of nodes with the time slice appended up to the desired ...
Returns the residuals from fitting a DBN
Computes the score of a BN or a DBN
Computes the score of a BN or a DBN
Computes the score of a BN or a DBN
Move the window of values backwards in a folded dataset row
Returns the standard deviation of the residuals from fitting a DBN
Performs smoothing with the GDBN over a dataset
Replacement function for parameters inside DBNs
Renames the columns in a data.table so that they end in '_t_0'
Geometric distribution sampler truncated to a maximum
Add two Velocities
R6 class that defines velocities affecting causality lists in the PSO
Learning and inference over dynamic Bayesian networks of arbitrary Markovian order. Extends some of the functionality offered by the 'bnlearn' package to learn the networks from data and perform exact inference. It offers three structure learning algorithms for dynamic Bayesian networks: Trabelsi G. (2013) <doi:10.1007/978-3-642-41398-8_34>, Santos F.P. and Maciel C.D. (2014) <doi:10.1109/BRC.2014.6880957>, Quesada D., Bielza C. and LarraƱaga P. (2021) <doi:10.1007/978-3-030-86271-8_14>. It also offers the possibility to perform forecasts of arbitrary length. A tool for visualizing the structure of the net is also provided via the 'visNetwork' package. Further detailed information and examples can be found in our Journal of Statistical Software paper Quesada D., LarraƱaga P. and Bielza C. (2025) <doi:10.18637/jss.v115.i06>.