Skip to content

Eyes example does not work in JuliaPro 1.2.0-2 (Julia 1.2.0) #168

Description

@rszoh

I am new to Julia and I really like Mamba. I seem to run into issues when I try to reproduce the Eyes example (https://mambajl.readthedocs.io/en/latest/examples/eyes.html). I get the error message below. I have no clue what is going on.

MethodError: Cannot convert an object of type Array{Float64,1} to an object of type ArrayStochastic{1}
Closest candidates are:
convert(::Type{T<:AbstractArray}, !Matched::T<:AbstractArray) where T<:AbstractArray at abstractarray.jl:14
convert(::Type{T<:AbstractArray}, !Matched::LinearAlgebra.Factorization) where T<:AbstractArray at C:\Users\julia\AppData\Local\Julia-1.2.0\share\julia\stdlib\v1.2\LinearAlgebra\src\factorization.jl:46
convert(::Type{S}, !Matched::T<:(Union{CategoricalArrays.CategoricalString{R}, CategoricalArrays.CategoricalValue{T,R} where T} where R)) where {S, T<:(Union{CategoricalArrays.CategoricalString{R}, CategoricalArrays.CategoricalValue{T,R} where T} where R)} at C:\Users\rszoh.juliapro\JuliaPro_v1.2.0-2\packages\CategoricalArrays\dmrjI\src\value.jl:103
...
(::getfield(Distributions, Symbol("##call#23#24")))(::Bool, ::Type{DiscreteNonParametric{Int64,Float64,Base.OneTo{Int64},ArrayStochastic{1}}}, ::Base.OneTo{Int64}, ::ArrayStochastic{1}) at discretenonparametric.jl:31
#call#26 at none:0 [inlined]
Type at none:0 [inlined]
#Categorical#27 at categorical.jl:34 [inlined]
Type at categorical.jl:34 [inlined]
(::getfield(Main, Symbol("##10#17")))(::ArrayStochastic{1}, ::Int64) at untitled-6a3806dada8e2ae419b40823edd6c231:33
(::getfield(Main, Symbol("##25#26")))(::Model) at array.jl:0
setinits!(::ArrayStochastic{1}, ::Model, ::Array{Int64,1}) at dependent.jl:173
setinits!(::Model, ::Dict{Symbol,Any}) at initialization.jl:11
setinits!(::Model, ::Array{Dict{Symbol,Any},1}) at initialization.jl:24
#mcmc#23(::Int64, ::Int64, ::Int64, ::Bool, ::typeof(mcmc), ::Model, ::Dict{Symbol,Any}, ::Array{Dict{Symbol,Any},1}, ::Int64) at mcmc.jl:30
(::getfield(Mamba, Symbol("#kw##mcmc")))(::NamedTuple{(:burnin, :thin, :chains),Tuple{Int64,Int64,Int64}}, ::typeof(mcmc), ::Model, ::Dict{Symbol,Any}, ::Array{Dict{Symbol,Any},1}, ::Int64) at none:0
top-level scope at untitled-6a3806dada8e2ae419b40823edd6c231:80

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions