You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In draw_values' loop over the named_node relations (while stack:...), TensorConstant variables are ignored and they don't add their parents to the stack. Later on, in the while to_eval or missing_inputs:... loop, the to_eval parameter nodes may be in the wrong order, and out is compiled, and used with the view of the original TensorConstant.value, instead of with the values that get drawn from the posterior predictive distribution.
Versions and main components
PyMC3 Version: pymc3.6
Theano Version: 1.0.4
Python Version: 3.6
Operating system: Ubuntu
How did you install PyMC3: (conda/pip) git clone
The text was updated successfully, but these errors were encountered:
… `TensorConstant` or `SharedVariables` to the named relationship nodes stack, only if these descendants are `ObservedRV` or `MultiObservedRV` instances.
* Fix for 3354
* Fixed float32 precision error
* Added inline comment explaining why we must add observed RVs to the stack
Following a discourse thread,
sample_posterior_predictive
does not give consistent results for deterministic nodes that depend onObservedRV
's.Please provide a minimal, self-contained, and reproducible example.
Please provide any additional information below.
The error is that
ppc['out'] != ppc['in_1'] + ppc['in_2']
.The problem seems to come from
draw_values
. Thein_1
andin_2
observed variables aretheano.ViewOP
s withTensorConstant
ancestors:In
draw_values
' loop over the named_node relations (while stack:...
),TensorConstant
variables are ignored and they don't add their parents to the stack. Later on, in thewhile to_eval or missing_inputs:...
loop, theto_eval
parameter nodes may be in the wrong order, andout
is compiled, and used with the view of the originalTensorConstant.value
, instead of with the values that get drawn from the posterior predictive distribution.Versions and main components
The text was updated successfully, but these errors were encountered: