Github user MLnick commented on a diff in the pull request:
https://github.com/apache/spark/pull/17845#discussion_r114706687
--- Diff: mllib/src/main/scala/org/apache/spark/ml/recommendation/ALS.scala
---
@@ -356,6 +356,19 @@ class ALSModel private[ml] (
/**
* Makes recommendations for all users (or items).
+ *
+ * Note: the previous approach used for computing top-k recommendations
+ * used a cross-join followed by predicting a score for each row of the
joined dataset.
+ * However, this results in exploding the size of intermediate data.
While Spark SQL makes it
+ * relatively efficient, the approach implemented here is significantly
more efficient.
+ *
+ * This approach groups factors into blocks and computes the top-k
elements per block,
+ * using Level 1 BLAS (dot) and an efficient [[BoundedPriorityQueue]].
It then computes the
--- End diff --
How about "... using dot product instead of gemm and an efficient ..."
---
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]