Closed erikbern closed 6 years ago
will repurpose this to a straightforward MAP using scipy.optimize
merging this for now since it doesn't interfere with any of the existing code
kind of annoying to have three different versions of the same tool though, i might unify it later
Implemented a regression model using pymc3, so fully Bayesian.
The good news is that it was very easy to implement (once I discovered the pymc3.Potential class). The bad news is this is slow as hell. It barely works for more than a few thousand datapoints – whereas the current models happily fit 100k datapoints in a few seconds.
I'm tempted to revert to my original idea of just fitting this using MAP and then computing the Hessian of the MAP to get a normal approximation of the posterior distribution. Seems a bit janky but I think it will be a pretty good approximation in practice, and probably ~100x faster.