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

[WIP] More robustly check inputs to inference algorithms #777

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

dustinvtran
Copy link
Member

@dustinvtran dustinvtran commented Oct 2, 2017

For example, we raise an error when instantiating an inference object that assumes explicit densities and the passed-in objects don't have a _log_prob method.

I was working on this until I started to wonder if we should even support such checks. Maybe we should throw away most of our static typing (#188, #198, #213) and follow the spirit of duck typing.

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 this pull request may close these issues.

None yet

1 participant