Anushka-2406
Anushka-2406
**Describe the bug** In LinearGaussianBayesianNetwork.fit() function, ```python if estimator not in {"mle"}: raise ValueError("estimator must be one of {'mle', 'unbiased'}") ``` However: - `"unbiased"` is not a valid estimator. -...
Currently, LinearGaussianBayesianNetwork.fit() only supports MLE-based parameter estimation. I would like to propose adding a fully conjugate Bayesian estimator using a Normal–Inverse-Gamma prior for each node’s local linear regression. Since parameter...
There appear to be mistakes and inconsistencies in the examples for `model.simulate()` in the LinearGaussianBayesianNetwork documentation. Specifically, the section headings and the corresponding example code for do and evidence arguments...
**Describe the bug** In `LinearGaussianBayesianNetwork.get_random_cpds` method, the following line has an issue: `seed = seed if seed else 42` If seed=0 or None, then according to this line, it gets...
This is a follow up to the PR #2923 , which focused on adding structural graph statistics. As causal-specific statistics require additional context (exposures and outcomes), they should be handled...
[ENH] Adding user-defined missingness conditions in `LinearGaussianBayesianNetwork.simulate` method
Adding `missing_data` parameter to `simulate` method in `LinearGaussianBayesianNetwork`. In this parameter, the user should pass a list of dict mentioning the `node` and the `condition` callable. The complete dataset simulated...
**Describe the bug** Even when the structure of two models are different, `__eq__` methods always return `True` if both the models have same CPDs. **To Reproduce** ``` from pgmpy.models import...
Adding DirectLiNGAM Algorithm for Causal Discovery. Research paper : [DirectLiNGAM](https://www.jmlr.org/papers/volume12/shimizu11a/shimizu11a.pdf ) Parent issue : #2931