在一定范围内按照排列组合方式对rank,iterations,lambda进行交叉评估(根据均方根误差),找到最小误差的组合,用于建立矩阵分解模型.Signature: ALS.train( ratings, rank, iterations=5, lambda_=0.01, blocks=-1, nonnegative=False, seed=None, ) Docstring: Train a matrix factorization model given an RDD of rating…