How to specify offset in poisson regression?

OK - thanks. I assume you mean to use the exp function when specifying mu, i.e.:

with pm.Model() as model:
    ...
    beta = pm.Flat('beta')  # Or whatever is appropriate for your model
    predictor = beta * x
    pm.Poisson('y', mu=exposure * tt.exp(predictor), observed=data)```