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