mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-19 00:49:39 +00:00
refactor
This commit is contained in:
parent
1077c521b1
commit
7aab3c63f4
8 changed files with 30 additions and 18 deletions
|
|
@ -12,7 +12,7 @@ from llama_stack.apis.scoring_functions import ScoringFn
|
|||
|
||||
class BaseScoringFn(ABC):
|
||||
"""
|
||||
Base interface class for all meta-reference scoring_fns.
|
||||
Base interface class for all native scoring_fns.
|
||||
Each scoring_fn needs to implement the following methods:
|
||||
- score_row(self, row)
|
||||
- aggregate(self, scoring_fn_results)
|
||||
|
|
@ -20,7 +20,6 @@ class BaseScoringFn(ABC):
|
|||
|
||||
def __init__(self, *args, **kwargs) -> None:
|
||||
super().__init__(*args, **kwargs)
|
||||
self.supported_fn_defs_registry = {}
|
||||
|
||||
def __str__(self) -> str:
|
||||
return self.__class__.__name__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue