search for: cpquery

Displaying 4 results from an estimated 4 matches for "cpquery".

2013 Oct 09
1
Using "cpquery" function from bnlearn package inside loop
Hi everyone, I'm attempting to use the bnlearn package to calculate conditional probabilities, and I'm running into a problem when the "cpquery" function is used within a loop. I've created an example, shown below, using data included with the package. When using the cpquery function in a loop, a variable created in the loop ("evi" in the example) is not recognized by the function. I receive the error: Error in parse(t...
2017 Jul 13
2
bnlearn and cpquery
Hi all I have built a Bayesian network using discrete data using the bnlearn package. When I try to run the cpquery function on this data it returns NaN for some some cases. Running the cpquery in debug mode for such a case (n=10^5, method="lw") creates the following output: generated a grand total of 1e+05 samples. > event has a probability mass of 14982.37 out of NaN (p = NaN). [1] NaN...
2017 Jul 13
0
bnlearn and cpquery
...osterior estimates for the parameters. Cheers, Marco On 13 July 2017 at 06:29, Ross Chapman <rosspjchapman at gmail.com> wrote: > Hi all > > > > I have built a Bayesian network using discrete data using the bnlearn > package. > > > > When I try to run the cpquery function on this data it returns NaN for some > some cases. > > > > Running the cpquery in debug mode for such a case (n=10^5, method="lw") > creates the following output: > > > > generated a grand total of 1e+05 samples. > > > event has a probabil...
2012 Sep 26
1
Specifying a response variable in a Bayesian network
I'm trying to teach myself about Bayesian Networks and am working with the following data and the bnlearn package. I understand the conceptual aspects of BNs, but I'm not sure how to specify the response variables in R when constructing a dag plot. I've cecked ?hc and done numerous google searches without luck. Can anyone help? library("bnlearn")