NUTS(1000, 0.95, 10): Cannot convert
an object of type Int64 to an object of type Symbol #1407
Closed
Description
I get an error using NUTS as described here: https://github.com/cambridge-mlg/Covid19
e.g.
julia> NUTS(1000, 0.95, 10)
ERROR: MethodError: Cannot `convert` an object of type Int64 to an object of type Symbol
Closest candidates are:
convert(::Type{T}, ::T) where T at essentials.jl:171
Symbol(::Any...) at strings/basic.jl:227
Stacktrace:
[1] merge(::NamedTuple{(),Tuple{}}, ::Tuple{Int64,Float64,Int64}) at ./namedtuple.jl:273
[2] NUTS{Turing.Core.ForwardDiffAD{40},space,metricT} where metricT<:AdvancedHMC.AbstractMetric where space(::Int64, ::Vararg{Any,N} where N) at /Users/mfairley/.julia/packages/Turing/9FTHB/src/inference/hmc.jl:359
[3] NUTS(::Int64, ::Vararg{Any,N} where N; kwargs::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at /Users/mfairley/.julia/packages/Turing/9FTHB/src/inference/hmc.jl:313
[4] NUTS(::Int64, ::Vararg{Any,N} where N) at /Users/mfairley/.julia/packages/Turing/9FTHB/src/inference/hmc.jl:313
[5] top-level scope at REPL[3]:1
Metadata
Assignees
Labels
No labels