背景
class pyspark.ml.recommendation.ALS(2.4.4)
def recommendForAllUsers(self, numItems):
“”"
Returns top numItems
items recommended for each user, for all users.
:param numItems: max number of recommendations for each user
:return: a DataFrame of (userCol, recommendations), where recommendations are
stored as an array of (itemCol, rating) Rows.
“”"