You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are many cases where observations are not just a pandas.Series but instead an ndim>=1ndarray.
In such cases the automatic imputation of float("nan") values does not work, because pymc3.model.pandas_to_array only looks for NaN if data is a pandas object.
The point of pandas_to_array is to convert data to a numpy ndarray, using a numpy.ma.MaskedArray for the imputation case.
It would make sense to support ndarray input too.
Description of your problem
Please provide a minimal, self-contained, and reproducible example.
There are many cases where observations are not just a
pandas.Series
but instead anndim>=1
ndarray
.In such cases the automatic imputation of
float("nan")
values does not work, becausepymc3.model.pandas_to_array
only looks for NaN ifdata
is a pandas object.The point of
pandas_to_array
is to convertdata
to a numpyndarray
, using anumpy.ma.MaskedArray
for the imputation case.It would make sense to support
ndarray
input too.Description of your problem
Please provide a minimal, self-contained, and reproducible example.
Please provide the full traceback.
Versions and main components
The text was updated successfully, but these errors were encountered: