Replies: 2 comments 6 replies
-
Why are you passing an array with strings to PyMC? Those won't be handled correctly regardless of the failure at the PyMC will ultimately convert the data to a PyMC TensorVariable which doesn't accept string dtypes. |
Beta Was this translation helpful? Give feedback.
-
The use case I had in mind involves the BEST model and a project I'm working on. The idea is store a categorical variable (possibly) a string along with the actual data. The array gets re indexed so the strings dont get passed to |
Beta Was this translation helpful? Give feedback.
-
Currently, if one tries to supply observations from a
numpy.ndarray
with both strings and floats to apymc.Distribution
errors are raised. It seemspymc
internally relies onnumpy.isnan
to check for missing values, which will raise in the above example. If the intention is to check fornan
only there is a slightly more general way of doing this:Beta Was this translation helpful? Give feedback.
All reactions