-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Imputations should also work with ndarray data #4437
Labels
Comments
michaelosthege
changed the title
Sampling with imputations is broken
Imputations only work with 1D pandas.Series
Jan 24, 2021
michaelosthege
changed the title
Imputations only work with 1D pandas.Series
Imputations should also work with ndarray data
Jan 24, 2021
michaelosthege
added a commit
to michaelosthege/pymc
that referenced
this issue
Jan 24, 2021
6 tasks
michaelosthege
added a commit
to michaelosthege/pymc
that referenced
this issue
Jan 24, 2021
michaelosthege
added a commit
to michaelosthege/pymc
that referenced
this issue
Jan 25, 2021
michaelosthege
added a commit
to michaelosthege/pymc
that referenced
this issue
Jan 25, 2021
michaelosthege
added a commit
to michaelosthege/pymc
that referenced
this issue
Jan 25, 2021
michaelosthege
added a commit
to michaelosthege/pymc
that referenced
this issue
Jan 25, 2021
michaelosthege
added a commit
to michaelosthege/pymc
that referenced
this issue
Jan 25, 2021
michaelosthege
added a commit
to michaelosthege/pymc
that referenced
this issue
Jan 25, 2021
michaelosthege
added a commit
to michaelosthege/pymc
that referenced
this issue
Jan 25, 2021
michaelosthege
added a commit
that referenced
this issue
Jan 28, 2021
* Support imputations with ndarray data (closes #4437)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: