Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
shadeMe committed Feb 7, 2024
1 parent 696d08f commit 84780c4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def inner(output: TestResult, metric: DeepEvalMetric) -> List[MetricResult]:
out = [MetricResult(name=metric_name, score=metric_result.score, explanation=metric_result.reason)]
if metric_result.score_breakdown is not None:
for k, v in metric_result.score_breakdown.items():
out.append(MetricResult(name=f"{metric_name}.{k}", score=v))
out.append(MetricResult(name=f"{metric_name}_{k}", score=v))
return out

return partial(inner, metric=metric)
Expand Down

0 comments on commit 84780c4

Please sign in to comment.