Closed SachiniEMSPE closed 2 years ago
Good point. I changed it and released a new version!
Update with:
pip install -U bnlearn
Try this instead:
prob = bn.inference.fit(G_list[k],variables=['X3','X1','X2'], evidence={},verbose=3)
prob.df
Thank you for updating! However, after updating bnlearn to 0.4.6, I'm getting an error (ModuleNotFoundError: No module named 'tabulate')
as attached. Seems like I cannot run bnlearn. Do you have any suggestions on that? Thanks!
I added the tabulate package to the setup file now. Try to pip install again.
pip install -U bnlearn
I see. Now it works! 😃 Thank you!
have fun! :)
Hi @erdogant , 👋
I tried to make the same inference using a list of DAGs (with a total of 5 variables) as below.
prob = bn.inference.fit(G_list[k],variables=['X3','X1','X2'], evidence={},verbose=3)
prob_df = prob.values
. I'm interested in finding variable values for a certain phi () value using theprob_df
index. However, I noticed that every time I'm getting a different order of variables as attached below. I was wondering whether there is any way to fix that output variable order? I even tried sending a fixed variable elimination order. But, it didn't work. I would appreciate any suggestions on this? 🤔 Thank you! 🙏