Closed laserkelvin closed 3 years ago
I'm using v0.12.3 and I found that this works:
optimize!(gp, Optim.Options(iterations=10))
That's right, the Optim
options are not a keyword argument, they're passed as the last argument to the optimize!
method. Thank you @fredcallaway.
I am having trouble specifying the maximum number of iterations in
optimize!
; by running:should work, as it should get passed as a kwarg to
optimize
. Instead, it returns:AFAIK this should work from PR #50. I couldn't find anything in the docs, and based on how I interpret the source for both
GaussianProcesses
andOptim
, this should work. I'm still a novice in Julia, and I could just be making a very silly mistake—hopefully someone can point that out to me.optimize!
works, as long as theoptions
kwarg is not specified: I've tried doingoptimize!(gp; options=Optim.Options())
which just produces the default options.