Irace callback feature - #98
Open
rmartinsanta wants to merge 1 commit into
Open
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #98 +/- ##
==========================================
+ Coverage 75.30% 75.43% +0.12%
==========================================
Files 30 30
Lines 5087 5113 +26
==========================================
+ Hits 3831 3857 +26
Misses 1256 1256 🚀 New features to boost your workflow:
|
Owner
|
Looks very good. Could you also add an entry to the NEWS.md file? I am in the middle of releasing the next version of irace, so this will go into irace 4.5. I will commit it as soon as irace 4.4.4 is released. |
Owner
|
I will also squash the multiple commits into a single one, so feel free to do that already. |
rmartinsanta
force-pushed
the
feat/callback
branch
from
September 3, 2026 16:52
c96ca3a to
bec759c
Compare
Author
|
Updated NEWS.md and squashed the commits, thanks for the fast response! |
Owner
|
@rmartinsanta Now that irace 4.4.4 has been released, could you rebase on top of the main branch and resolve the conflicts? They are probably due to updates to NEWS.md in main. I will then merge the PR. |
rmartinsanta
force-pushed
the
feat/callback
branch
from
September 9, 2026 23:13
750b57b to
1f81f18
Compare
(cherry picked from commit bec759c)
rmartinsanta
force-pushed
the
feat/callback
branch
from
September 9, 2026 23:16
1f81f18 to
ac51f5e
Compare
Author
|
Done! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add an optional
iterationCallbackscenario function that is invoked after each completed irace iteration.This allows users to monitor tuning progress or collect intermediate results without modifying irace internals.
Callback interface
The callback receives the following named arguments:
iteration: current iteration number.elites: elite configurations ordered from best to worst.progress: budget and timing information for the tuning run.Callbacks should include
...as their final argument to remain compatible with additional arguments introduced by future irace versions. Exampleiteration_callback: