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

Handle missing data in BayesianModel predict methods #1118

Open
robbymeals opened this issue Jun 10, 2019 · 0 comments · May be fixed by #1119
Open

Handle missing data in BayesianModel predict methods #1118

robbymeals opened this issue Jun 10, 2019 · 0 comments · May be fixed by #1119

Comments

@robbymeals
Copy link

Subject of the issue

One of the advantages of the Bayesian network model is that it can handle missing data easily, but the predict methods in pgmpy fail entirely when a row in the input data frame contains None or nan. I have a couple simple changes that support missing data in these predict methods, I'll open a PR with this as the issue. I imagine there are better ways to do this, and I'm happy to take feedback and do this right.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant