-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Eyes example does not work in JuliaPro 1.2.0-2 (Julia 1.2.0) #168
Comments
This looks like an issue in the Distributions package. I've pushed a commit to the master branch with a temporary fix. Use |
Thank you Brian! This is not working for me. I get the following error: (v1.2) pkg> develop Mamba |
|
Brian, |
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
The text was updated successfully, but these errors were encountered: