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
This makes GalacticOptim match the common interface arguments.
I'm counting this as part of GalacticOptim v3 since the component solvers haven't been released so it hasn't been possible to use it anyways.
@@ -31,7 +31,7 @@ function SciMLBase.__solve(prob::OptimizationProblem, opt::Flux.Optimise.Abstrac
31
31
for (i, d) inenumerate(data)
32
32
f.grad(G, θ, d...)
33
33
x = f.f(θ, prob.p, d...)
34
-
cb_call =cb(θ, x...)
34
+
cb_call =callback(θ, x...)
35
35
if!(typeof(cb_call) <:Bool)
36
36
error("The callback should return a boolean `halt` for whether to stop the optimization process. Please see the sciml_train documentation for information.")
37
37
elseif cb_call
@@ -50,7 +50,7 @@ function SciMLBase.__solve(prob::OptimizationProblem, opt::Flux.Optimise.Abstrac
0 commit comments