Skip to content

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

Open
dustinvtran wants to merge 2 commits into
masterfrom
feature/check-inputs
Open

[WIP] More robustly check inputs to inference algorithms#777
dustinvtran wants to merge 2 commits into
masterfrom
feature/check-inputs

Conversation

@dustinvtran

@dustinvtran dustinvtran commented Oct 2, 2017

Copy link
Copy Markdown
Member

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.

1 participant