Temporal evaluation and representative subset selection#2
Merged
Conversation
|
🎉 This PR is included in version 1.1.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
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.
This pull request introduces two major new commands to the
ethibenchCLI:temporalandsubset. Thetemporalcommand generates cumulative evaluation plots over elapsed time, while thesubsetcommand finds the most representative subset of targets under a cost constraint. The documentation and CLI have been updated to reflect these additions, and new modules have been added to support the functionality. Additionally, an experiment-specific script for temporal evaluation has been removed in favor of the new, general-purpose implementation.New CLI commands and features:
ethibench temporalcommand, which generates a 4×N subplot figure showing cumulative true positives, false positives, severity score, and CWE coverage over time for each run and target. This command requires findings with timestamps and thatethibench evaluatehas already been executed. [1] [2]ethibench subsetcommand, which selects a subset of targets whose F1 scores best correlate with the full benchmark, subject to a cost ratio constraint. This helps users create a reduced evaluation suite that remains representative while reducing cost. [1] [2]Documentation and codebase updates:
README.mdto document the newtemporalandsubsetcommands, including usage, options, and behavior. Also updated the module tree to include the newtemporal.pyandsubset.pyfiles. [1] [2] [3]README.mdto mention the new commands.Code cleanup:
experiments/claude-code-sonnet/temporal_evaluation.py, as its functionality is now provided by the general-purposeethibench temporalcommand.