You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the docs it looks like fitting Laplace to a dataset with weights would work, but:
n =100
x =rand(n)
w =rand(n)
fit_mle(Normal, x, w) # worksfit_mle(Laplace, x, w) # doesn't work
errors out with:
ERROR: suffstats is not implemented for (Laplace, Array{Float64,1}, Array{Float64,1}).
Stacktrace:
[1] suffstats(::Type{Laplace}, ::Array{Float64,1}, ::Array{Float64,1}) at /home/yakir/.julia/packages/Distributions/yz3Bc/src/genericfit.jl:5
[2] fit_mle(::Type{Laplace}, ::Array{Float64,1}, ::Array{Float64,1}) at /home/yakir/.julia/packages/Distributions/yz3Bc/src/genericfit.jl:28
[3] top-level scope at none:0
I didn't check all the other distributions but there are probably more that don't work with weights. A quick fix might be to change the docs to "only the Normal distribution can be fitted with weights".
The text was updated successfully, but these errors were encountered:
In the docs it looks like fitting Laplace to a dataset with weights would work, but:
errors out with:
I didn't check all the other distributions but there are probably more that don't work with weights. A quick fix might be to change the docs to "only the Normal distribution can be fitted with weights".
The text was updated successfully, but these errors were encountered: