Skip to content

Commit 955b022

Browse files
committed
fixed failing tests
1 parent bde3069 commit 955b022

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mllib/src/main/scala/org/apache/spark/mllib/evaluation/BinaryClassificationMetrics.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ class BinaryClassificationMetrics @Since("3.0.0") (
169169
// negatives within each bin, and then sort by score values in descending order.
170170
val counts = scoreLabelsWeight.combineByKey(
171171
createCombiner = (labelAndWeight: (Double, Double)) =>
172-
new BinaryLabelCounter(labelAndWeight._1, labelAndWeight._2),
172+
new BinaryLabelCounter(0.0, 0.0) += (labelAndWeight._1, labelAndWeight._2),
173173
mergeValue = (c: BinaryLabelCounter, labelAndWeight: (Double, Double)) =>
174174
c += (labelAndWeight._1, labelAndWeight._2),
175175
mergeCombiners = (c1: BinaryLabelCounter, c2: BinaryLabelCounter) => c1 += c2

0 commit comments

Comments
 (0)