top | item 10757518

(no title)

alkalait | 10 years ago

I'm a bit familiar with PyMC, but all it seems to do is Gibbs sampling, which mixes horribly compared to HMC.

How easy would the transition to PyStan be?

discuss

order

data_scientist|10 years ago

PyMC 3 implements HMC. It is still in beta but quite stable

twiecki|10 years ago

If you're interested: http://pymc-devs.github.io/pymc3/

PyMC3 uses Theano to create a compute graph of the model which then gets compiled to C. Moreover, it gives us the gradient for free so that HMC and NUTS can be used which work models of high complexity.

I use it in production, despite it still being beta. We're close to the first stable release but there are still some small kinks to figure out.

Disclaimer: I'm a co-developer.

rfergie|10 years ago

Probably pretty easy.

It is different, but the core semantics are the same so you just have to worry about new syntax (and worse python integration)