Open digicosmos86 opened 3 months ago
Do you have a particular use case in mind? In principle, I'm not against it. But I do see it causing things to fail if users pass var_names
without knowing well what they're doing. Is your goal to exclude variables that are being included right now or to include variables that are excluded?
I think we want to be able to exclude certain parameters (especially deterministics) from InferenceData
Are those deterministics computing parameters of the likelihood? Like mu
or sigma
in y ~ Normal(mu, sigma)
? If that is the case, they are computed after the sampler finishes so it should not be really affecting computation time. Do you have a memory issue?
In PyMC,
pm.Sample()
has avar_names
parameter which allows the users to specify the variable names to be included inInferenceData
. In Bambi, it seems that_run_mcmc()
will override this argument when callingpm.sample()
, leaving the users with no option to specify the variables that they want to include in theInferenceData
. Maybevar_names
can be added tomodel.fit()
to make it possible to pass the user's ownvar_names
?