bambinos / bambi

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

Raise an error when there are invalid prior specifications #815

Open digicosmos86 opened 4 months ago

digicosmos86 commented 4 months ago

Is there a way for bambi to throw an error if there are entries in the priors dict passed to bmb.Model that are not assigned to any term?

tomicapretto commented 3 months ago

@digicosmos86 sorry for the delay in the response. It it not possible at the moment, unused priors are just omitted.

I think there could be a config variable in our configuration https://github.com/bambinos/bambi/blob/main/bambi/config.py to control it.