You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
posterior_based_potential should support IID x. #1804
Hi @manuelgloeckler
If no one is currently working on this, I would love to pick it up.
I would fix it in the same aprroach already used in VectorFieldBasedPotential.__call__:
log p(θ|x₁,...,xₙ) = Σᵢ log p(θ|xᵢ) - (N-1) · log p(θ)
PosteriorBasedPotential.set_x - Remove the NotImplementedError and pass x_is_iid through to BasePotential.set_x. PosteriorBasedPotential.__call__ - Add an IID branch that loops over each x_i, evaluates log p(θ|xᵢ) individually, sums them, and subtracts (N-1) · log p(θ).
And also add a parametrised test comparing the IID potential log-prob against the analytically known linear Gaussian ground truth.
no one is currently working on this as far as I know. So a contribution would be great :)
The plan does look good. Note that this also requires a proper prior to be based to build_posterior or NeuralInference otherwise a ValueError should be raised. This also should avoid being affected by #1803 .
Reacted by Jocho (Johannes Schmidt) and Satwik Sahoo
Activity
satwiksps commentedon Mar 10, 2026
Hi @manuelgloeckler
If no one is currently working on this, I would love to pick it up.
I would fix it in the same aprroach already used in
VectorFieldBasedPotential.__call__:log p(θ|x₁,...,xₙ) = Σᵢ log p(θ|xᵢ) - (N-1) · log p(θ)
PosteriorBasedPotential.set_x- Remove theNotImplementedErrorand passx_is_iidthrough toBasePotential.set_x.PosteriorBasedPotential.__call__- Add an IID branch that loops over eachx_i, evaluates log p(θ|xᵢ) individually, sums them, and subtracts (N-1) · log p(θ).And also add a parametrised test comparing the IID potential log-prob against the analytically known linear Gaussian ground truth.
manuelgloeckler commentedon Mar 12, 2026
Hey @satwiksps ,
no one is currently working on this as far as I know. So a contribution would be great :)
The plan does look good. Note that this also requires a proper prior to be based to
build_posteriororNeuralInferenceotherwise a ValueError should be raised. This also should avoid being affected by #1803 .