Skip to content

Commit 15c2586

Browse files
authored
Merge pull request #2405 from ales-erjavec/fixes/calibration-plot-dtype-error
owcalibrationplot: Specify output type for the smoother
2 parents 436b6d2 + 8a3410a commit 15c2586

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Orange/widgets/evaluate/owcalibrationplot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ def smoother(xs):
220220
W = a * numpy.exp(-gamma * ((xs - x) ** 2))
221221
return numpy.average(y, weights=W)
222222

223-
return numpy.frompyfunc(smoother, 1, 1)
223+
return numpy.vectorize(smoother, otypes=[numpy.float])
224224

225225

226226
def main():

0 commit comments

Comments
 (0)