sync upstream -> midstream#104
Conversation
Changed the representation of attack success rate metrics from percentage to ratio in the GarakAdapter class.
- Extract _pct_to_ratio() helper to avoid duplicating round(v/100, 4) - Clarify log message with "(ratio)" so operators know 0.25 means 25% - Add metric_type == "ratio" assertions in both _parse_results tests Made-with: Cursor
fix: normalize evalhub metrics to 0-1 ratio scale for UI compatibility
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughThe pull request refactors attack success rate (ASR) metrics from percentage representation to ratio representation (0–1 scale). A new helper method Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes IssuesInput validation gap in 🚥 Pre-merge checks | ✅ 1 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (1 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary by CodeRabbit
Bug Fixes
Tests