Skip to content

cpquery problem

1 message · Ross Chapman

#
Hi Marco

Thanks for your prompt reply.

First, I have been using the parse(eval()) convention because I saw it
used in some example code for running cpquery, but am happy to drop this
practice.

I have tried running the cpquery in the debug mode, and found that it
typically returns the following for instances where the conditional
probability is returned as 0:

   > event matches 0 samples out of 0 (p = 0)

Am I right in understanding that the Monte Carlo sampling has been unable
to create any cases that match the query?  If so, why would this be if the
evidence used is very typical of an average case in the data used to train
the network?

Also, I have run predict on this network and get very good correlations
between the predicted and actual observations (r-squared 0.8 - 0.9).  Why
would it be that the network can return near perfect predictions can be so
good for a test set while the conditional probabilities remain at zero for
when exploring the same data set?

I think that I must be missing something in my deployment of the package
or the interpretation of the output.

Many thanks for your help.

Ross
On Fri, July 29, 2016 7:34 pm, Marco Scutari wrote: