3
$\begingroup$

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.

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

1 Answer 1

2
$\begingroup$

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.

You can see a very basic example at this blogpost or more complicated case at pymc3 documentation.

$\endgroup$
1
  • 1
    $\begingroup$ Please make sure you're including the answer itself in your post, rather than a link to the answer. (I don't know enough about the subject to say whether or not you are, but in case you're not, I want to mention it) $\endgroup$
    – anon
    Mar 27, 2017 at 23:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.