Skip to content

Commit 8cacc89

Browse files
committed
use concat not concatenate
1 parent 54f4b53 commit 8cacc89

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sklearn/metrics/_ranking.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -380,9 +380,9 @@ def det_curve(
380380

381381
# add a threshold at inf where the clf always predicts the negative class
382382
# i.e. tps = fps = 0
383-
tps = xp.concatenate((xp.asarray([0], device=device), tps))
384-
fps = xp.concatenate((xp.asarray([0], device=device), fps))
385-
thresholds = xp.concatenate((xp.asarray([np.inf], device=device), thresholds))
383+
tps = xp.concat((xp.asarray([0], device=device), tps))
384+
fps = xp.concat((xp.asarray([0], device=device), fps))
385+
thresholds = xp.concat((xp.asarray([np.inf], device=device), thresholds))
386386

387387
if drop_intermediate and len(fps) > 2:
388388
# Drop thresholds where true positives (tp) do not change from the
@@ -392,7 +392,7 @@ def det_curve(
392392
# in the transformed (normal deviate) scale. These intermediate points
393393
# can be dropped to create lighter DET curve plots.
394394
optimal_idxs = xp.where(
395-
xp.concatenate(
395+
xp.concat(
396396
[
397397
xp.asarray([True], device=device),
398398
xp.logical_or(xp.diff(tps[:-1]), xp.diff(tps[1:])),

0 commit comments

Comments
 (0)