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

refactor: extend Callback interface #234

Merged
merged 10 commits into from
Mar 22, 2021
Merged

refactor: extend Callback interface #234

merged 10 commits into from
Mar 22, 2021

Conversation

spflueger
Copy link
Member

Closes #230

Add on_optimize_start and on_optimize_end to Callback interface,
defining events at the beginning and the end of the complete
optimization procedure.
Verify the the invocation order of the various callback events.
@spflueger spflueger added 💡 Feature ⚠️ Interface Breaking changes to the API labels Mar 17, 2021
@spflueger spflueger requested a review from redeboer March 17, 2021 18:32
@codecov
Copy link

codecov bot commented Mar 17, 2021

Codecov Report

Merging #234 (4472c53) into master (cce4a62) will decrease coverage by 0.73%.
The diff coverage is 69.09%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #234      +/-   ##
==========================================
- Coverage   81.65%   80.92%   -0.74%     
==========================================
  Files          12       12              
  Lines         507      540      +33     
  Branches       64       68       +4     
==========================================
+ Hits          414      437      +23     
- Misses         71       81      +10     
  Partials       22       22              
Flag Coverage Δ
unittests 80.92% <69.09%> (-0.74%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/tensorwaves/optimizer/callbacks.py 69.53% <64.58%> (-2.64%) ⬇️
src/tensorwaves/optimizer/minuit.py 92.85% <100.00%> (+0.12%) ⬆️
src/tensorwaves/optimizer/scipy.py 91.66% <100.00%> (+4.43%) ⬆️

Copy link
Member

@redeboer redeboer left a comment

Choose a reason for hiding this comment

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

LGTM
As discussed, it would be better to tackle the jumps in the SciPy optimize process in this PR as well, but I currently don't see a solution.
image

@redeboer redeboer merged commit 47806ac into master Mar 22, 2021
@redeboer redeboer deleted the issue230 branch March 22, 2021 12:59
@redeboer redeboer added this to the Release 0.2.1 milestone Mar 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⚠️ Interface Breaking changes to the API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add an init and cleanup stage in the callback interface
2 participants