-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor:
SummarizationAccuracyMetrics
transform to handle multiple…
… target outputs more efficiently (#317) * Added metric to factual knowledge + unit/integration tests cr: https://code.amazon.com/reviews/CR-135854933 * fixed changes from PR comments * Deleted metrics.py and restored code in util.py * added factual knowledge metrics to constants.py * added factual knowledge metrics to be included in binary score * updated score descriptions for factual knowledge * feat: add configurable param logical_operator (OR/AND) to factual knoweldge * fixed changes from PR comments * added warning and fixed typo * modified warnings and fixed invalid config tests for factual_knowledge * feat: Adding BERTScore to QAAccuracy + QAAccuracySemanticRobustness * fix: documentation and tests for qa accuracy + qa accuracy semantic robustness * fix: lint checks * fix: created dataset for qa_accuracy, reverted to js_model_runner * fix: integration tests by adding approx for BertScore * fix: moved BertScoreWithDelimiter to qa_accuracy and updated tests * fix: restored qa_accuracy_semantic_robustness * fix: smaller dataset for integ tests to reduce runtime * fix: smaller dataset for integ tests to reduce runtime * Add BertScoreMax transform for qa_accuracy * fix: lint checks * fix: cleaning up code and checking reporting folder for changes * fix: refactored SummarizationAccuracyMetric * fix: deleted dataset file from previous PR * refactor: added target_output_keys_provider to SummarizationAccuracyMetric * edited description of test function * updated assert description for target_output_keys * fixed comments from PR * fixed errors in test from previous run * add unit test and fixed type issues * fix: Mocked BertScore in unit test
- Loading branch information
1 parent
2c6a402
commit bc5a15f
Showing
4 changed files
with
135 additions
and
36 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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