Hey all,
I am Rok, a Stan developer, and I am looking for a bit of your help. I am trying to do a bit of performance comparisons between the various MCMC frameworks and would like to do it fairly.
And this is where I need help from someone that can read Stan but is very knowledgeable in PyMC3.
What would be the most performant way of writing this logistic regression model and running it with 4 chains in PyMC3 with JAX and optionally also with the previously used Theano backend:
data {
int<lower=1> k;
int<lower=0> n;
matrix[n, k] X;
int y[n];
}
parameters {
vector[k] beta;
real alpha;
}
model {
target += std_normal_lpdf(beta);
target += std_normal_lpdf(alpha);
target += bernoulli_logit_glm_lpmf(y | X, alpha, beta);
}
While I think I could piece it together, I am in no way PyMC3-proficient enough to be sure I got the most performant version.
Thanks in advance!