Fix: purchase_date acc issue
This commit is contained in:
parent
b845406cdf
commit
54c23e800f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user