BUG: Datatype of Discrete RVs is changed to float64
when observed
data has missing values
#6424
Labels
float64
when observed
data has missing values
#6424
Describe the issue:
Issue first reported here. When using a categorical likelihood with missing variables in the observed data vector, the result is not able to be used as an index variable, because the dtype of the combined missing+observed data vector created in
model.make_obs_var
does not inherit thedtype
of the underlying RV.This will cause unexpected behavior if the user wants to index with the variable elsewhere in the model.
Reproduceable code example:
Error message:
PyMC version information:
Context for the issue:
No response
The text was updated successfully, but these errors were encountered: