We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ae377a2 + c7dedd3 commit df41089Copy full SHA for df41089
Orange/base.py
@@ -466,10 +466,9 @@ def fix_dim(x):
466
elif prediction.ndim == 2 + multitarget:
467
value, probs = None, prediction
468
else:
469
- raise TypeError("model returned a %i-dimensional array",
470
- prediction.ndim)
+ raise TypeError(f"model returned a {prediction.ndim}-dimensional array")
471
472
- # Ensure that we have what we need to return; backmapp everything
+ # Ensure that we have what we need to return; backmap everything
473
if probs is None and (ret != Model.Value or backmappers is not None):
474
probs = one_hot_probs(value)
475
if probs is not None:
0 commit comments