Skip to content

Commit df41089

Browse files
authored
Merge pull request #6602 from markotoplak/fix-error
Fix an error message in Learner
2 parents ae377a2 + c7dedd3 commit df41089

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Orange/base.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -466,10 +466,9 @@ def fix_dim(x):
466466
elif prediction.ndim == 2 + multitarget:
467467
value, probs = None, prediction
468468
else:
469-
raise TypeError("model returned a %i-dimensional array",
470-
prediction.ndim)
469+
raise TypeError(f"model returned a {prediction.ndim}-dimensional array")
471470

472-
# Ensure that we have what we need to return; backmapp everything
471+
# Ensure that we have what we need to return; backmap everything
473472
if probs is None and (ret != Model.Value or backmappers is not None):
474473
probs = one_hot_probs(value)
475474
if probs is not None:

0 commit comments

Comments
 (0)