ref TuringLang/Turing.jl#2452
Support of using NamedTuple for initial_params input was introduced in #632.
Current implementation of set_values!! , which handles the initialization, does not support initializing variables that are subsumed by a varname provided in the NamedTuple.
For example, if the model contains X[1], it won’t work if initial_params is passed as (; X = ...).
To enable this functionality, we could consider adding support for using OrderedDict.
Additionally, as mentioned in TuringLang/Turing.jl#2452 , the error message can be improved when the provided vector does not conform to AbstractVector{<:Union{Real, Missing}}.
ref TuringLang/Turing.jl#2452
Support of using
NamedTupleforinitial_paramsinput was introduced in #632.Current implementation of
set_values!!, which handles the initialization, does not support initializing variables that are subsumed by a varname provided in the NamedTuple.For example, if the model contains
X[1], it won’t work ifinitial_paramsis passed as(; X = ...).To enable this functionality, we could consider adding support for using
OrderedDict.Additionally, as mentioned in TuringLang/Turing.jl#2452 , the error message can be improved when the provided vector does not conform to
AbstractVector{<:Union{Real, Missing}}.