zhengruifeng commented on a change in pull request #30468:
URL: https://github.com/apache/spark/pull/30468#discussion_r529219939
##########
File path:
mllib/src/main/scala/org/apache/spark/ml/recommendation/TopByKeyAggregator.scala
##########
@@ -57,3 +57,57 @@ private[recommendation] class TopByKeyAggregator[K1:
TypeTag, K2: TypeTag, V: Ty
override def outputEncoder: Encoder[Array[(K2, V)]] =
ExpressionEncoder[Array[(K2, V)]]()
}
+
+
+/**
+ * Works on rows of the form (ScrId, DstIds, Scores).
+ * Finds the top `num` DstIds and Scores.
+ */
+private[recommendation] class TopKArrayAggregator(num: Int)
Review comment:
since I just find that aggregating on array bring little improvement, so
I will remove this class
----------------------------------------------------------------
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]