ReactiveBayes / RxInfer.jl

Julia package for automated Bayesian inference on a factor graph with reactive message passing
MIT License
237 stars 24 forks source link

Consufing error message with the `@initialization` macro #279

Closed bvdmitri closed 2 months ago

bvdmitri commented 2 months ago

Not sure if its easy to fix, but this

@initialization begin 
    q(μ) = NormalMeanPrecision(0.0, 0.001),
    q(τ) = GammaShapeRate(10.0, 10.0)
end

gives this error

ERROR: syntax: "0" is not a valid function argument name around REPL[4]:2
Stacktrace:
 [1] top-level scope
   @ REPL[4]:1
wouterwln commented 2 months ago

Drop the , after the marginal for mu. Do you want me to investigate to improve the error msg?

wouterwln commented 2 months ago

Its fixed in dev-3.0.0 btw

bvdmitri commented 2 months ago

Ah, sorry, didn't check! Great, thanks!!