File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 33
33
34
34
import pymc as pm
35
35
36
- from pymc .aesaraf import convert_observed_data
37
-
38
36
__all__ = [
39
37
"get_data" ,
40
38
"GeneratorAdapter" ,
@@ -668,9 +666,10 @@ def Data(
668
666
)
669
667
name = model .name_for (name )
670
668
671
- # `convert_observed_data` takes care of parameter `value` and
672
- # transforms it to something digestible for Aesara.
673
- arr = convert_observed_data (value )
669
+ # Conversion to floatX is important to avoid having another conversion when the variable
670
+ # is used for observed somewhere. This breaks identification of the pm.Data variables
671
+ # as observed data, which is a Problem for model_to_graphviz and posterior predictive sampling.
672
+ arr = pm .floatX (value )
674
673
675
674
if mutable is None :
676
675
warnings .warn (
You can’t perform that action at this time.
0 commit comments