Open
Description
Masked observations are no longer associated with the observed RV, but to a separate free RV.
import numpy as np
import pymc as pm
with pm.Model() as m:
x = pm.Normal('x', observed=[np.nan, 1, 2, 3])
print(m['x_observed'].tag.observations) # TensorConstant{[1.0 2.0 3.0]}
As such I am not sure whether we are computing the correcting model log_likelihood
for partially observed models, assuming the imputed observations should appear in the final log_likelihood:
Running all tests in test_idata_conversion.py
with coverage, confirmed that these lines lines in InferenceDataConverter.log_likelihood-vals_point
are not being triggered:
Lines 248 to 257 in 0c90e82
This came up in #5245