yichang.zyc yingda.chen 3 years ago
parent
commit
62339161cd
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      modelscope/metrics/base.py

+ 3
- 0
modelscope/metrics/base.py View File

@@ -10,6 +10,9 @@ class Metric(ABC):
complex metrics for a specific task with or without other Metric subclasses. complex metrics for a specific task with or without other Metric subclasses.
""" """


def __init__(self, *args, **kwargs):
pass

@abstractmethod @abstractmethod
def add(self, outputs: Dict, inputs: Dict): def add(self, outputs: Dict, inputs: Dict):
""" Append logits and labels within an eval loop. """ Append logits and labels within an eval loop.


Loading…
Cancel
Save