Skip to content
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

[WIP]Allow state and iterations as arguments in callback #573

Closed
wants to merge 1 commit into from

Conversation

Vaibhavdixit02
Copy link
Member

This needs the solver wrappers other than OptimizationOptimisers to have it implemented

using them for plotting and display without recalculating. The callback should
return a Boolean value, and the default should be `false`, such that the optimization
gets stopped if it returns `true`.
the optimization `f` or the state of the optimizer and iteration count. This allows
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

" or the state of the optimizer and iteration count" what do you mean by that?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll refine it. It's a placeholder to make sure I update it as soon as the update happens in the wrappers.

The point is that the callback will have a current state of the optimizer if it's available and iteration counts

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand how that would work. Wouldn't that need to be an argument? If so, how is that argument uniformized? I don't see a struct definition or docs to go along with that.

Copy link

codecov bot commented Dec 27, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (1ccfa8d) 5.26% compared to head (acd0f02) 30.49%.
Report is 5 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff             @@
##           master     #573       +/-   ##
===========================================
+ Coverage    5.26%   30.49%   +25.22%     
===========================================
  Files          53       53               
  Lines        4061     4020       -41     
===========================================
+ Hits          214     1226     +1012     
+ Misses       3847     2794     -1053     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Vaibhavdixit02 Vaibhavdixit02 deleted the Vaibhavdixit02-patch-1 branch January 6, 2024 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants