ReactiveBayes / RxInfer.jl

Julia package for automated Bayesian inference on a factor graph with reactive message passing
https://rxinfer.ml/
MIT License
278 stars 23 forks source link

x ~ Normal(0, 1) should error and hinting users to use Normal(mean = ..., var/prec = ...) #360

Closed bvdmitri closed 1 month ago

bvdmitri commented 1 month ago

Currently it throws a vague error message, I thought we have fixed it before but apparently its still present in the codebases

MethodError: no method matching factornode(::ReactiveMP.UndefinedNodeFunctionalForm, ::Type{Normal}, ::Vector{Tuple{Symbol, AbstractVariable}}, ::Tuple{Vector{Int64}, Vector{Int64}, Vector{Int64}})