Skip to content

Commit d8ba1de

Browse files
authored
MNT Avoid DeprecationWarning in numpy-dev (scikit-learn#32010)
1 parent f2cd677 commit d8ba1de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sklearn/cluster/_affinity_propagation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def _affinity_propagation(
100100
R += tmp
101101

102102
# tmp = Rp; compute availabilities
103-
np.maximum(R, 0, tmp)
103+
np.maximum(R, 0, out=tmp)
104104
tmp.flat[:: n_samples + 1] = R.flat[:: n_samples + 1]
105105

106106
# tmp = -Anew

0 commit comments

Comments
 (0)