medil.models.GaussianMCM
- class medil.models.GaussianMCM(**kwargs)[source]
Bases:
MedilCausalModel
A linear MeDIL causal model with Gaussian random variables.
Methods
__init__
(**kwargs)fit
(dataset)Fit a Gaussian MCM to a dataset with constraint-based structure learning and least squares parameter estimation.
sample
(sample_size)Sample a dataset from a GaussianMCM, after structure and parameters have been specified or estimated.
- fit(dataset: numpy.typing.NDArray) GaussianMCM [source]
Fit a Gaussian MCM to a dataset with constraint-based structure learning and least squares parameter estimation.