-
-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose standard callback options for datafit
#158
Comments
Is something like this on the right track? (Very roughly)
Basically a TimedDatafitCallback struct, with a constructor that takes a tolerance and an effect function, and has a default value for the time elapsed before running the effect function. Then I make the struct callable with the same signature as in https://docs.sciml.ai/Optimization/stable/API/solve/. Then use it as the callback for the Optimizer call inside of datafit. This also depends on having the loss function also return the solution of the ODE though, since that's needed for the signature. I didn't see any examples of callbacks for Optimizers.jl so this might be completely off. |
yup that's on the right track |
The callback should calculate:
The text was updated successfully, but these errors were encountered: