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
The PointMass constraint without a mean-field factorization breaks the BFE computation. I think this issue is related to #32.
Minimal working examples:
Works fine
@modelfunctiontest_model()
# controls
y =datavar(Float64)
# prior on state
u ~NormalMeanVariance(0, 1)
z ~NormalMeanVariance(u, 1)
y ~NormalMeanVariance(z, 1)
end;
@constraintsfunctiontest_constraints()
q(u, z) =q(u)q(z)
q(u) ::PointMassend;
test_results =inference(
model =test_model(),
data = ( y =1.0, ),
constraints =test_constraints(),
free_energy =true,
initmarginals = (u =PointMass(0), z =Normal(0,1)),
)
Error: Failed to compute the final Bethe Free Energy value. The result is Inf after subtracting PointMass entropies.
@modelfunctiontest_model()
# controls
y =datavar(Float64)
# prior on state
u ~NormalMeanVariance(0, 1)
z ~NormalMeanVariance(u, 1)
y ~NormalMeanVariance(z, 1)
end;
@constraintsfunctiontest_constraints()
q(u) ::PointMassend;
test_results =inference(
model =test_model(),
data = ( y =1.0, ),
constraints =test_constraints(),
free_energy =true,
)
Returns NaN (Invalid release! call on ScoreActor. The current frame has not been fully specified)
@modelfunctiontest_model()
# controls
y =datavar(Float64)
# prior on state
u ~NormalMeanVariance(0, 1)
y ~NormalMeanVariance(u, 1)
end;
@constraintsfunctiontest_constraints()
q(u) ::PointMassend;
test_results =inference(
model =test_model(),
data = ( y =1.0, ),
constraints =test_constraints(),
free_energy =true,
)
The text was updated successfully, but these errors were encountered:
The
PointMass
constraint without a mean-field factorization breaks the BFE computation. I think this issue is related to #32.Minimal working examples:
Works fine
Error: Failed to compute the final Bethe Free Energy value. The result is
Inf
after subtractingPointMass
entropies.Returns NaN (Invalid
release!
call onScoreActor
. The current frame has not been fully specified)The text was updated successfully, but these errors were encountered: