[R] bnlearn cpquery NA problem

2019-06-13 Thread Yujian Liu
Hi all, I'm using bnlearn to build a Bayesian Network with 167 nodes. I have got the fitted network, but when I try to do inference using cpquery (or cpdist), I got this error message: Error in logical(n) : vector size cannot be NA/NaNIn addition: Warning message:In check.cpq.args(fitted = fitted

[R] bnlearn cpquery

2016-06-03 Thread Marco Scutari
Dear Ross, On Friday, 3 June 2016, > wrote: > > I find that repeating the command gives very different results for the > same set of evidence. Some variability in the results is expected since they are Monte Carlo estimates. What is happening in your case is, I think, that your evidence has a

[R] bnlearn cpquery

2016-06-02 Thread ross.chapman
Hi all I have created a Bayes network with 14 nodes using the bnlearn package and want to explore the conditional probabilities for specific node with a given set of evidence using the cpquery() command. I find that repeating the command gives very different results for the same set of evi