# Bayesian network for classification using PyMc or PyMc3

I am seraching for a while an example on how to use PyMc/PyMc3 to do classification task, but have not found an concludent example regarding on how to do the predicton on a new data point. I am currious if some could give me some references.

• Will be easier to help you if you post some code, maybe some toy-model May 24, 2016 at 23:57

pymc will not provide you pretty sklearn-style .predict method for this case, however you can do it on your own. The idea is simple enough: you should draw coefficients for the classifier using pymc, and after it use them for the classifier itself manually.