mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-16 06:53:47 +00:00
scoring function def rename
This commit is contained in:
parent
42bac85e1f
commit
6053b8dd34
4 changed files with 19 additions and 40 deletions
|
@ -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)
|
||||
|
|
|
@ -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=[],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue