bambinos / bambi

BAyesian Model-Building Interface (Bambi) in Python.
https://bambinos.github.io/bambi/
MIT License
1.09k stars 126 forks source link

Add example showing how to access the underlying PyMC3 model #412

Open tomicapretto opened 3 years ago

GStechschulte commented 1 year ago

This somewhat exists in the last section of getting started. Is this what this issue is referring to? Or is a more in depth example wanted; showing how to inspect, and modify the internally stored objects?

tomicapretto commented 1 year ago

Perhaps you can simply add another chunk showing how to fit the model as you would do with PyMC. Like this

with model.backend.model:
    idata = pm.sample()
idata