在一定范围内按照排列组合方式对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 ratings by users
for a subset of products. The ratings matrix is approximated as the
product of two lower-rank matrices of a given rank (number of
features). To solve for these features, ALS is run iteratively with
a configurable level of parallelism. :param ratings:
RDD of `Rating` or (userID, productID, rating) tuple.
:param rank: #矩阵分解秩
Number of features to use (also referred to as the number of latent factors).
:param iterations: #迭代次数
Number of iterations of ALS.
(default: 5)
:param lambda_: #正则系数
Regularization parameter.
(default: 0.01)
:param blocks:
Number of blocks used to parallelize the computation. A value
of -1 will use an auto-configured number of blocks.
(default: -1)
:param nonnegative:
A value of True will solve least-squares with nonnegativity
constraints.
(default: False)
:param seed:
Random seed for initial matrix factorization model. A value
of None will use system time as the seed.
(default: None) .. versionadded:: 0.9.0
File: f:\anaconda\lib\site-packages\pyspark\mllib\recommendation.py
Type: method

最新文章

  1. 听H3絮叨:何以让天下没有难用的流程
  2. Android中实现如下多语言选择Radiobutton效果
  3. CF453B Little Pony and Harmony Chest (状压DP)
  4. backtracking(回溯算法)
  5. Android滚动截屏,ScrollView截屏
  6. SQL Server类型与C#类型对应关系
  7. 自学HTML5第三节(拖放效果)
  8. 理解ROS的节点(NODE)
  9. LINUX中磁盘挂载与卸除
  10. CSS 基础
  11. centos6.5下redis安装步骤总结
  12. 比sun.misc.Encoder()/Decoder()的base64更高效的mxBase64算法
  13. LeetCode - Backspace String Compare
  14. MySQL的binlog及关闭方法
  15. kubernetes ceph-rbd挂载步骤 类型storageClass
  16. 解决 nginx 出现 413 Request Entity Too Large 的问题
  17. webpack学习笔记—优化缓存、合并、懒加载等
  18. [Usaco2009 Feb]Revamping Trails 道路升级 BZOJ1579
  19. Python3基础 file for+文件指针 读取txt文本并 一行一行的输出(高效率)
  20. Android ListView demo

热门文章

  1. 用 UniRx 实现 Timeline 式的异步操作
  2. 关于SQL Server 镜像数据库快照的创建及使用
  3. 并发编程常用工具类(一) countDownLatch和cyclicBarrier的使用对比
  4. Jmeter接口自动化测试系列之函数使用及扩展
  5. Lucene 查询原理 传统二级索引方案 倒排链合并 倒排索引 跳表 位图
  6. XA Transactions
  7. Kubernetes TensorFlow 默认 特定 集群管理器 虚拟化技术
  8. 利用Mixins扩展类功能
  9. RabbitMQ入门看这一篇就够了
  10. Spring 设计模式介绍