From 54c23e800ffa86ec3bf0ced638aaeade6d941f3c Mon Sep 17 00:00:00 2001 From: dx-tan Date: Mon, 8 Apr 2024 14:45:31 +0700 Subject: [PATCH] Fix: purchase_date acc issue --- cope2n-api/fwd_api/utils/accuracy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cope2n-api/fwd_api/utils/accuracy.py b/cope2n-api/fwd_api/utils/accuracy.py index 903fcde..05811f2 100755 --- a/cope2n-api/fwd_api/utils/accuracy.py +++ b/cope2n-api/fwd_api/utils/accuracy.py @@ -673,7 +673,7 @@ def _accuracy_calculate_formatter(inference, target): target = [] if target is None else [target] length = max(len(target), len(inference)) - target = target + (length - len(target))*[None] + target = target + (length - len(target))*[target[0]] if len(target) > 0 else target + (length - len(target))*[None] inference = inference + (length - len(inference))*[None] return inference, target