Hi all,
I’m trying to use EarlyStopping.jl.
If I understood the documentation, the following should work, though it doesn’t seem to:
#add early stopping call back from EarlyStopping.jl
function callback!(p,l,early_stopper)
return done!(early_stopper,l)
end
stopper = EarlyStopper(Patience(1), verbosity = 1)
callback!(p,l) = callback!(p,l,stopper)
opt_solve = Optimization.solve(opt,Optimisers.Adam(0.01),maxiters = 10000, callback = callback!)
I see the n_increases number go up though. Anyone have experience a simpler use case or can tell me if I’m making a mistake with the closure ?
Thanks!