Hi Rachana, On 23 February 2016 at 12:38, Rachana Bagde <rachanabagde1...@gmail.com> wrote: > Can anyone please solve this query. > > http://stackoverflow.com/questions/35577484/cpquery-of-bnlearn-gives-0-for-every-event-and-evidence-in-r
I think there are several problems with your code. 1) Your variables are continuous, why are you fitting a naive Bayes classifier? 2) Assuming your variables are continuous, any single value for C is going to have zero probability (the density may be positive, though). 3) Assuming you really want to fit a classifier, you should discretize the variables into intervals first. Cheers, Marco -- Marco Scutari, Ph.D. Lecturer in Statistics, Department of Statistics University of Oxford, United Kingdom ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.