dongjoon-hyun commented on a change in pull request #32648:
URL: https://github.com/apache/spark/pull/32648#discussion_r638513891
##########
File path:
mllib/src/main/scala/org/apache/spark/mllib/evaluation/MultilabelMetrics.scala
##########
@@ -178,7 +178,11 @@ private[evaluation] class MultilabelSummarizer extends
Serializable {
* @return This MultilabelSummarizer object.
*/
def add(predictions: Array[Double], labels: Array[Double]): this.type = {
- val intersection = predictions.intersect(labels)
+ val intersection = if (predictions.isEmpty || labels.isEmpty) {
Review comment:
Thank you for filing the upstream issue. Ya, it looks like a breaking
behavior change.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]