Consider renaming Deterministic
to store_in_trace
#7209
Replies: 17 comments
-
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. |
Beta Was this translation helpful? Give feedback.
-
Storing in trace and showing in graphviz are the only uses I can think of. |
Beta Was this translation helpful? Give feedback.
-
Perhaps something like |
Beta Was this translation helpful? Give feedback.
-
Short would also be nice, maybe something like |
Beta Was this translation helpful? Give feedback.
-
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
|
Beta Was this translation helpful? Give feedback.
-
Alternative names:
feel free to add others if anyone has ideas. |
Beta Was this translation helpful? Give feedback.
-
Not Does github have polls? |
Beta Was this translation helpful? Give feedback.
-
Here's a quick poll. Use the associated emoji to vote.
|
Beta Was this translation helpful? Give feedback.
-
Its a virtual tie internally, so let's go with |
Beta Was this translation helpful? Give feedback.
-
This user was getting OOM problems because of the behavior of Deterministic: #6852 OTOH calling something Deterministic sounds nice for targeting by the |
Beta Was this translation helpful? Give feedback.
-
I don't follow. |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
I don't feel the same holds quite true for |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
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
Beta Was this translation helpful? Give feedback.
All reactions