Github user jkbradley commented on a diff in the pull request:
https://github.com/apache/spark/pull/3118#discussion_r19986243
--- Diff:
mllib/src/test/scala/org/apache/spark/mllib/evaluation/BinaryClassificationMetricsSuite.scala
---
@@ -59,4 +59,60 @@ class BinaryClassificationMetricsSuite extends FunSuite
with LocalSparkContext {
assert(metrics.precisionByThreshold().collect().zip(threshold.zip(precision)).forall(cond2))
assert(metrics.recallByThreshold().collect().zip(threshold.zip(recall)).forall(cond2))
}
+
+ test("binary evaluation metrics for All Positive RDD") {
+ val scoreAndLabels = sc.parallelize(Seq((0.5, 1.0)), 2)
--- End diff --
It's odd to have 1 datum in a 2-partition RDD. Maybe do 2 tuples? (Same
for other test.)
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]