-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Consider renaming Deterministic
to store_in_trace
#6695
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
Comments
Deterministic
to store_in_trace
Deterministic
to store_in_trace
That makes a lot of sense to me... are there any other uses for pm.Deterministic? We could put a deprecation warning on pm.Deterministic, but that might be a bit noisy given its adoption level. |
Storing in trace and showing in graphviz are the only uses I can think of. |
Perhaps something like |
Short would also be nice, maybe something like |
Was also thinking about capitalization/camel case here. I assume we will also need to pass a name, so might be odd to have these using a lower case/underscore convention while everything else in the model is camel cased. The camel case convention sort of implies that it is a first-class variable in the model, which I like.
versus
|
Alternative names:
feel free to add others if anyone has ideas. |
Not Does github have polls? |
Here's a quick poll. Use the associated emoji to vote.
|
Its a virtual tie internally, so let's go with |
This user was getting OOM problems because of the behavior of Deterministic: #6852 OTOH calling something Deterministic sounds nice for targeting by the |
I don't follow. |
with pm.Model() as m:
...
x = pm.Deterministic("x”, ...)
... new_m = observe(m, {x: data}) new_m = do(m, {x: intervention}) Is more intuitive when |
I don't feel the same holds quite true for |
Thanks for the great package and making it freely available. It's a pleasure learning Beyesian data analysis through the many great examples and In addition emphasising the potential caveats of using Especially for hierarchical models, cf. here lead me to include "deterministics" into models and end up with unnecessarily large traces and compute times for e.g. Also consider the usage of 'deterministics' here which might also be confusing - at least when starting with |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Description
Deterministic
does not convey the meaning of what it does. It stores an arbitrary computation (including stochastic nodes) in the trace, between sampled points.From experience with Discourse users (most recent example), I think
Deterministic
is a source of confusion. Some users feel they need it for everything that is not apm.Distribution
. This isWe should keep the
Deterministic
as an alias for quite some time, but start using the new name in docs and examples.Alternative names welcome
The text was updated successfully, but these errors were encountered: