marleneberke / ORB_project3

0 stars 1 forks source link

Error with mvuniform #15

Closed marleneberke closed 4 years ago

marleneberke commented 4 years ago

julia> include("April_May/execute_Mario_model.jl")

ERROR: LoadError: MethodError: no method matching logpdf(::MultivariateUniform, ::Array{Float64,1}, ::Float64, ::Float64, ::Float64, ::Float64) Closest candidates are: logpdf(::Gen.TransformedDistribution{T,U}, ::T, ::Any...) where {T, U} at /Users/marleneberke/.julia/packages/Gen/zBy5S/src/modeling_library/dist/transformed_distribution.jl:28 logpdf(::Gen.WithLabelArg{T,U}, ::T, ::Any, ::Any...) where {T, U} at /Users/marleneberke/.julia/packages/Gen/zBy5S/src/modeling_library/dist/relabeled_distribution.jl:6 logpdf(::Gen.RelabeledDistribution{T,U}, ::T, ::Any...) where {T, U} at /Users/marleneberke/.julia/packages/Gen/zBy5S/src/modeling_library/dist/relabeled_distribution.jl:60 ... Stacktrace: [1] traceat(::Gen.GFGenerateState, ::MultivariateUniform, ::NTuple{4,Float64}, ::Tuple{Symbol,Int64}) at /Users/marleneberke/.julia/packages/Gen/zBy5S/src/dynamic/generate.jl:33 [2] ##gm#357(::Gen.GFGenerateState, ::Array{String,1}, ::Int64, ::Int64) at /Users/marleneberke/Documents/03_Yale/Projects/001_Mask_RCNN/ORB_project3/April_May/gm_Mario_model.jl:232 [3] exec(::DynamicDSLFunction{Any}, ::Gen.GFGenerateState, ::Tuple{Array{String,1},Int64,Int64}) at /Users/marleneberke/.julia/packages/Gen/zBy5S/src/dynamic/dynamic.jl:54 [4] generate(::DynamicDSLFunction{Any}, ::Tuple{Array{String,1},Int64,Int64}, ::EmptyChoiceMap) at /Users/marleneberke/.julia/packages/Gen/zBy5S/src/dynamic/generate.jl:84 [5] generate(::DynamicDSLFunction{Any}, ::Tuple{Array{String,1},Int64,Int64}) at /Users/marleneberke/.julia/packages/Gen/zBy5S/src/gen_fn_interface.jl:190 [6] top-level scope at /Users/marleneberke/Documents/03_Yale/Projects/001_Mask_RCNN/ORB_project3/April_May/execute_Mario_model.jl:43 [7] include(::String) at ./client.jl:439

in expression starting at /Users/marleneberke/Documents/03_Yale/Projects/001_Mask_RCNN/ORB_project3/April_May/execute_Mario_model.jl:43

marleneberke commented 4 years ago

@belledon I think this is something small but I'm not figuring it out at the moment

marleneberke commented 4 years ago

mvnormal is located in the file shared_functions.jl

belledon commented 4 years ago

you need to say that you are overloading the gen functions random, logpdf, logpdf_grad

https://github.com/mdb293/ORB_project3/blob/9e1f468c845d837ac27591f664688584604a3f53/April_May/shared_functions.jl#L86-L102

prefix with Gen.

marleneberke commented 4 years ago

Ooooh! Thanks!