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.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, if one tries to supply observations from a
numpy.ndarraywith both strings and floats to apymc.Distributionerrors are raised. It seemspymcinternally relies onnumpy.isnanto check for missing values, which will raise in the above example. If the intention is to check fornanonly there is a slightly more general way of doing this:Beta Was this translation helpful? Give feedback.
All reactions