Skip to content

Commit c84d26e

Browse files
committed
np.sum(np.multiply( -> np.dot(
1 parent 4da5742 commit c84d26e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sklearn/metrics/metrics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1324,7 +1324,7 @@ def accuracy_score(y_true, y_pred, normalize=True, sample_weight=None):
13241324
return np.mean(score)
13251325
else:
13261326
if sample_weight is not None:
1327-
return np.sum(np.multiply(score, sample_weight))
1327+
return np.dot(score, sample_weight)
13281328
return np.sum(score)
13291329

13301330

0 commit comments

Comments
 (0)