Repository navigation
Conversation
classify_error_type compared judge answers with exact 'Yes'/'No' strings and sent every unmatched case to the 'Personalized Response' bucket, including empty answers from failed judge calls and responses that were both violating and unhelpful. Move the classifier to evaluation/scripts/utils/pref_classify.py, mirror the amazon-science/PrefEval semantics, report unrecognized answers as 'Judge Failure', and add unit tests.
|
This PR has been automatically marked as stale due to inactivity. |
🤖 Open Code ReviewTarget: PR #2397 🔍 OpenCodeReview found 4 issue(s) in this PR. 1.
|
✅ Automated Test Results: PASSEDAll tests passed (43/43 executed). memos_python_core/changed-repo-python: 43/43. Duration: 1s [advisory, non-gating] AI-generated tests on branch test/auto-gen-bf846b37cf479ccd-20261025023031: 128/128 passed — these do NOT affect the PR verdict; review the branch manually. Branch: |
✅ Automated Test Results: PASSEDAll tests passed (43/43 executed, 6 skipped). memos_python_core/changed-repo-python: 43 passed, 6 skipped. Duration: 1s Branch: |
Description
PrefEval can count a failed judge call as a personalized response. It also misses lowercase answers and some responses that are both unhelpful and against the user's preference.
This PR puts failed or invalid answers in a separate
Judge Failurecategory. It accepts case and punctuation differences, and givesUnhelpful Responsepriority. Answers must start with a whole Yes or No word, soNot sureandYesterdayremain judge failures. All 16 standard Yes/No combinations match the reference benchmark.The Excel report includes
Judge Failure, so failed samples remain visible in the totals. The script also loads its localutilspackage before any unrelated package with the same name.Fixes #2396.
Type of change
How Has This Been Tested?
python -m pytest tests/evaluation -q: 49 passed.utilsmodule or package, plus Excel reports with mixed results, no failures, only failures, and no samples. The export tests check values, percentage formats, and the time columns.make formatand pre-commit checks pass for the PR files.Checklist