-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Open
Labels
Description
Description
This is mixing behavior. check_bounds is mostly a rewrite to avoid ParameterCheckBounds in the logp-related functions obtained from the model. Therefore it should be the one handling it.
Lines 948 to 958 in 056e80c
| # If called inside a model context, see if check_bounds flag is set to False | |
| try: | |
| from pymc.model import modelcontext | |
| model = modelcontext(None) | |
| check_bounds = model.check_bounds | |
| except TypeError: | |
| check_bounds = True | |
| check_parameter_opt = ( | |
| "local_check_parameter_to_ninf_switch" if check_bounds else "local_remove_check_parameter" | |
| ) |
We may however decide to remove the functionality altogether. See ...