File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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 :])),
You can’t perform that action at this time.
0 commit comments