scoring function def rename

This commit is contained in:
Xi Yan 2024-10-24 13:51:11 -07:00
parent 42bac85e1f
commit 6053b8dd34
4 changed files with 19 additions and 40 deletions

View file

@ -17,7 +17,7 @@ class BaseScorer(ABC):
- aggregate(self, scorer_results)
"""
scoring_function_def: DeterministicFunctionDef
scoring_function_def: ScoringFunctionDef
def __init__(self, *args, **kwargs) -> None:
super().__init__(*args, **kwargs)

View file

@ -17,7 +17,7 @@ class EqualityScorer(BaseScorer):
A scorer that assigns a score of 1.0 if the input string matches the target string, and 0.0 otherwise.
"""
scoring_function_def = DeterministicFunctionDef(
scoring_function_def = ScoringFunctionDef(
identifier="equality",
description="Returns 1.0 if the input is equal to the target, 0.0 otherwise.",
parameters=[],