Skip to content
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

Support imputations with ndarray data #4439

Merged
merged 2 commits into from
Jan 28, 2021

Conversation

michaelosthege
Copy link
Member

@michaelosthege michaelosthege commented Jan 24, 2021

closes #4437

Imputations are realized with a numpy MaskedArray, which inherits from ndarray. Therefore not only DataFrame and Series, but also ndarray can be the input.

pymc3/model.py Outdated Show resolved Hide resolved
RELEASE-NOTES.md Outdated Show resolved Hide resolved
pymc3/model.py Outdated Show resolved Hide resolved
@ricardoV94
Copy link
Member

LGTM if the pd.Series and pd.DataFrame are comprehensive enough

pymc3/model.py Outdated Show resolved Hide resolved
Copy link
Contributor

@AlexAndorra AlexAndorra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @michaelosthege, all good now! We can merge once the Pandas stuff is sorted out 😉

pymc3/model.py Outdated Show resolved Hide resolved
pymc3/model.py Outdated Show resolved Hide resolved
@michaelosthege
Copy link
Member Author

Sorry about force-pushing all the time. Also I just noticed that my change to the tests did not show up, so I had to push yet another time 😭

This is probably the hardest low hanging fruit PR of all time.

@michaelosthege michaelosthege deleted the fix-4437 branch January 28, 2021 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Imputations should also work with ndarray data
4 participants