Given the structure of a Bayesian network, estimate the parameters (weights) using ordinary least squares (for Gaussian data) or logistic regression (for discrete data).
estimate.parameters(fit, data, ...)fitted sparsebnFit or sparsebnPath object containing the Bayesian network structure to fit.
Data to use for fitting.
The low-level fitting methods are fit_glm_dag (for continuous data)
and fit_multinom_dag (for discrete data).