Hi,
Apologies, Julia newcomer. I’m trying to use Optim.jl to fit the parameters of a particular custom noise model by minimizing negative log-likelihood, but I’m running into some issues where methods that exist in previous examples don’t seem to exist anymore.
In particular, I’m trying to use the following code:
function fit_model(data_x, data_y; x0 = [0.3, 0.1, 0.05])
lower = [0, 0, 0]
upper = [1, 1, 1]
result = optimize(x -> session_neg_log_likelihood(x, data_x, data_y), lower, upper, x0, Fminbox(LBFGS()))
end
However, it’s producing an error:
MethodError: no method matching optimize(::getfield(Main, Symbol("##52#53")){Array{Int64,3},Array{Int64,1}}, ::Array{Int64,1}, ::Array{Int64,1}, ::Array{Float64,1}, ::Fminbox{LBFGS{Nothing,LineSearches.InitialStatic{Float64},LineSearches.HagerZhang{Float64,Base.RefValue{Bool}},getfield(Optim, Symbol("##19#21"))},Float64,getfield(Optim, Symbol("##43#45"))})
I’m not really sure how to go about debugging this, since I (think) I’ve seen examples that look like the above around.
Any help would be appreciated.
Thanks.