Skip to content

refactor(scripts): unify model evaluation and fix EPS precision bug - #1315

Merged
tushuhei merged 1 commit into
mainfrom
refactor-eval
Aug 7, 2026
Merged

refactor(scripts): unify model evaluation and fix EPS precision bug#1315
tushuhei merged 1 commit into
mainfrom
refactor-eval

Conversation

@tushuhei

@tushuhei tushuhei commented Aug 7, 2026

Copy link
Copy Markdown
Member
  • Unify model evaluation logic by sharing evaluate_model.evaluate with tests/test_quality.py.
  • Fix EPS precision bug in scripts/evaluate_model.py by replacing unconditional EPS additions with safe zero-guarded division.
  • Include sentence mismatches (errors) unconditionally in returned EvaluationMetrics dictionary.
  • Update evaluator unit tests for exact 1.0 metric assertions.

- Unify model evaluation logic by sharing evaluate_model.evaluate with tests/test_quality.py.
- Fix EPS precision bug in scripts/evaluate_model.py by replacing unconditional EPS additions with safe zero-guarded division.
- Include sentence mismatches (errors) unconditionally in returned EvaluationMetrics dictionary.
- Update evaluator unit tests for exact 1.0 metric assertions.

@kojiishi kojiishi left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tushuhei
tushuhei merged commit fac5855 into main Aug 7, 2026
43 checks passed
@tushuhei
tushuhei deleted the refactor-eval branch August 10, 2026 01:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants