Separate "probability expression" syntax #13
phipsgabler
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
I like the Soss has I was also wondering about |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've been contemplating whether something like StatsModels formula syntax, but for probability expressions, might be useful to abstract out as well.
For example, this parses quite OK:
There are currently two places where something similar is used:
In DynamicPPL's
prob
string macros for probability queries:prob"s = 1.0, m = 1.0 | model = gdemo, x = nothing, y = nothing"
There, the string is really just split at the
|
, and thenMeta.parse
d. Separating out probability expressions would remove some awkwardness of "conditioned variables" which are not random variables, like themodel
.In (future) Soss, you should be able to condition models: conditional models cscherrer/Soss.jl#216. Not quite the same thing, but going into a similar direction.
Perhaps other things, like prior/likelihood queries and transformations against models, can be subsumed under this, too.
CC @yebai @mohamed82008 @cscherrer
Beta Was this translation helpful? Give feedback.
All reactions