Re:Pyro: The Universal, Probablistic Programming Language
by 6gvONxR4sf7o on Friday July 28, 2023 @02:53PM
(#36911487)
I was being underspecific to be concise, but in pyro, I'd mean something like this:
def f(x, y):
return pyro.sample(
"z",
dist.Normal(x+y, 1),
obs=5
)
model = pyro.condition(f, x=3)
I also don’t understand your f example with (x, y, noise) if you fix x and the return value, you still have two unknowns with 1 equation. How is that easy to solve?
Unless you’re considering using parametric inverses to represent the solution — but you didn’t mention this so I assume you didn’t mean this.