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 2 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: |
Signed-off-by: Jiang Wu <245355730+JiangLLM@users.noreply.github.com>
✅ Automated Test Results: PASSEDAll tests passed (43/43 executed, 6 skipped). memos_python_core/changed-repo-python: 43 passed, 6 skipped. Duration: 2s Branch: |
Description
PrefEval can count an empty judge answer 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 judge answers in a separate
Judge Failurecategory. It accepts case and punctuation differences, and givesUnhelpful Responsepriority. An answer 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 Failurein its totals. Each header has its own text-wrap format, so number formats cannot remove the line breaks. 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 with pandas 2.3.1 and 49 passed with pandas 3.1.0.utilsmodule or package on the Python path.make formaton the four PR Python files and pre-commit checks passed.Checklist