Closed fonnesbeck closed 4 years ago
This is a bug in from_pymc
.
@ColCarroll @aloctavodia @canyon289 what should be the correct way to handle "missing" data?
The issue looks like it is triggered when getting log likelihood data as it tries to evaluate the logp_elemwise
after modifying the model which results in this error. A possible workaround would be what I described in this other issue.
The solution should probably involve making sure logp_elemwise
can be evaluated before calling it and if it cannot be called write a warning about log likelihood values not being available.
Could you confirm this is solved in ArviZ master?
Running code right away should print a warning. Converting explicitely with az.from_pymc3(trace, log_likelihood=False)
should work fine and without warnings.
When variables are added to a model post-fitting, plots fail even when the requested plot does not include the additional variable. This is relevant for plotting GP parameters, as the predictive mean is typically added to the model just prior to posterior predictive sampling, since it is not needed until then.
For example,
But when I try to plot another variable in the model, it looks for
f_pred
nonetheless, and chokes.This occurs for both
plot_trace
andplot_forest
. Not sure when this broke, but it worked in the pre-arviz days.Currently running 0.3.3 on Python 3.7.3.