Solution:
@using Setfield, ConstructionBase, Turing
alg = NUTS(0.65)
ConstructionBase.constructorof(::Type{NUTS{A, B, C}}) where {A, B, C} = (x…) → NUTS{A, B, C}(x…)
@set! alg.max_depth = 4
Solution:
@using Setfield, ConstructionBase, Turing
alg = NUTS(0.65)
ConstructionBase.constructorof(::Type{NUTS{A, B, C}}) where {A, B, C} = (x…) → NUTS{A, B, C}(x…)
@set! alg.max_depth = 4