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 below constructor only serves to provide backwards compatibility with the constructor
283
+
# of the old Gibbs sampler. It is deprecated and will be removed in the future.
284
+
functionGibbs(algs::InferenceAlgorithm...)
285
+
alg_dict =Dict{Any,InferenceAlgorithm}()
286
+
for alg in algs
287
+
space =getspace(alg)
288
+
space_vns =if (space isa Symbol || space isa VarName)
289
+
space
290
+
else
291
+
tuple((s isa Symbol ?VarName{s}() : s for s in space)...)
292
+
end
293
+
alg_dict[space_vns] = alg
294
+
end
295
+
Base.depwarn(
296
+
"Specifying which sampler to use with which variable using syntax like `Gibbs(NUTS(:x), MH(:y))` is deprecated and will be removed in the future. Please use `Gibbs(; x=NUTS(), y=MH())` instead.",
0 commit comments