-
Notifications
You must be signed in to change notification settings - Fork 32
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
Adds values_as_in_model
#588
Conversation
corresponding to a varname from a varinfo as seen in the model
`extract_realizations` so we sample variables not present in the varinfo
Pull Request Test Coverage Report for Build 8758055720Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
considered to be static
specifying whether we should sample or just evaluate using a context arg
This makes great sense to me. Some concerns:
|
"realization" has a very clear meaning in the context of random variables, but I agree overall that Happy to take alternative suggestions! I do think the docstring clarifies it a bit, but still.
Big in favour of this too 👍 |
I was thinking about this a bit earlier, and tbh it might be worth moving this "has_static_support" check into But what sort of generalizations do you have in mind? The gibbs use-case would benefit from exactly the same |
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
After chat with @yebai, we've decided to remove the |
…into torfjelde/extract-realizations
Am in dire need of a better name though! |
more descriptive (and similarly for the corresponding context)
Shieeet I just accidentally merged the wrong way 🤦 |
That's fine |
Related: TuringLang/Turing.jl#2195
I also added a docstring which I believe explains the issue fairly well.
EDIT: To actually address TuringLang/Turing.jl#2195 we need some way knowing whether a model has static constraints or not. I made a commit adding a
isstatic
field toModel
to test it out, and it works nicely. But we probably want something slightly more general, i.e. a "trait system" with traits such as:And maybe more.
Without something like this I don't quite see how we can solve these issues 😕
EDIT 2: Remove the static-trait-thingy.