Closed ogencoglu closed 3 years ago
Hi @ogencoglu thanks for your issue. This is a known bug when calling fit_cpds
if there are states in the training set that are not in the test set, or the other way around. I'm hoping to release a fix for this today, when I will let you know it is resolved.
In the mean time, you can either run the tutorial without the train / test split, or try re-running it a few times until it works (that is, until you randomly get all states in both train and test).
Ben
Thanks for the swift reply!
Fixed in the new release. Full running notebooks are available at: https://github.com/quantumblacklabs/causalnex/tree/develop/docs/source/03_tutorial
Description
Following the tutorial raises the following:
bn = bn.fit_cpds(train, method="BayesianEstimator", bayes_prior="K2")
Would be great to have a fully working jupyter notebook as an example.
Steps to Reproduce
Your Environment
pip show causalnex
): causalnex==0.4.3python -V
): 3.7