I have created a model using e1071 package for Naive Bayes classifier. I need to print the conditional probabilities in below format.
P(C=c1)=0.32 P(A1=x1|c1)=0.33 P(A1=x2|c1)=0.67 P(A2=y1|c1)=0.25 P(A2=y2|c1)=0.75 P(A3=z1|c1)=0.26 P(A3=z2|c1)=0.49 P(A3=z3|c1)=0.25
When I type model name, I can see the conditional probabilities but don't know how to access individual value and use it to print result in above format.
I am new to R and not sure how to parse model and get data in this form. How to parse model and separate out data?