Fix: purchase_date acc issue

This commit is contained in:
dx-tan 2024-04-08 14:45:31 +07:00
parent b845406cdf
commit 54c23e800f

View File

@ -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