mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-10-15 16:18:10 +08:00
lint
Former-commit-id: d821d933e6cb982d648a69f85f6ad01d0560ed70
This commit is contained in:
parent
b5e9df5df8
commit
2e1396cd6b
@ -65,6 +65,7 @@ class ComputeAccuracy:
|
|||||||
r"""
|
r"""
|
||||||
Computes accuracy and supports `batch_eval_metrics`.
|
Computes accuracy and supports `batch_eval_metrics`.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def _dump(self) -> Optional[Dict[str, float]]:
|
def _dump(self) -> Optional[Dict[str, float]]:
|
||||||
result = None
|
result = None
|
||||||
if hasattr(self, "score_dict"):
|
if hasattr(self, "score_dict"):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user