• 【第二课】kaggle案例分析二


    Evernote Export

    推荐系统比赛(常见比赛)

    推荐系统分类

    最能变现的机器学习应用

    • 基于应用领域分类:电子商务推荐,社交好友推荐,搜索引擎推荐,信息内容推荐等
    • **基于设计思想:**基于协同过滤的推荐,基于内容的推荐,基于知识的推荐,混合推荐
    • 基于使用何种数据:基于用户行为数据的推荐,基于用户标签的推荐,基于社交网络数据,基于上下信息(时间上下文,地点上下文等)
      示例说明:Netflix比赛
    • Netflix是一家在线影片租赁提供商。公司能够提供超大数量的DVD,而且能够让顾客快速方便的挑选影片,同时免费递送。Netflix已经连续五次被评为顾客最满意的网站,可以通过PC,TV及iPad、iphone等收看电视节目
    • Netflix大奖赛从2006年10月份开始,Netfilx公开了大约1个亿1-5的匿名影片评级。数据集仅包含了影片名称,评价星级和评级日期,没有任何文本评价的内容。比赛要求参赛者预测Netflix的客户分别喜欢什么影片,要把预测的效率提高10%以上。
    • 对推荐算法发展有着深远影响,比如对LFM的追捧使其快速进入大众视野,对LFM提出了很多改进方法。

    推荐系统的算法

    • 基于物品的协同过滤算法ItemCF:基于item的系统算法,通过用户对不同item的评分来评测item之间的相似性,基于item之间的相似性做出推荐
    • 简单来说就是:给用户推荐他之前喜欢的物品或相似的物品
    • IitemCF算例:
    • 基于ItemCF的原理和基于UserCF类似,只是在计算邻居时采用物品本身,而不是从用户的角度,即基于用户对于物品的偏好找到类似的物品,然后根据用户的历史偏好,推荐相似的物品给他。
    • 从计算的角度看,就是将所有用户对某个物品的偏好作为一个向量来计算物品之间的相似度,得到物品的相似物品之后,根据用户历史的偏好预测当前用户还没有表示偏好的物品,计算得到一个排序的物品列表作为推荐。
    • 同现矩阵X评分矩阵=推荐结果
    • 本质是猜测评分矩阵的空缺元素
    • LFM(latent factor model)
    • 关键公式
      LFM通过如下公式计算用户u对物品的兴趣

    Preference(u,i)=rwi=pMTqi=f=1FPMqi,k

    这个公式中,Pw,kqi,k是模型的参数,其中Pw,k度量了用户u的兴趣和第k个隐类的关系,而qi,k度量了第k个隐类和物品i之间的关系。那么,下面的问题就是如何计算这两个参数。
    选择一个训练集,用适当的数学算法计算出上述公式里待确定的权重

    • 源于对SVD(奇异值分解)方法的改进,传统SVD是线性代数典型问题
    • SVD可用于推荐系统评分矩阵补全,但是由于计算量太大,实际上只是适用于规模很小的系统
    • Simon Funk改进SVD(Funk-SVD),后来被称为Latent Factor Model
    • 常见同类问题求解思路
    • 最大似然(类似训练贝叶斯信念网络和EM算法)
    • 转化为求解损失函数极小值问题

    C=(u,i)ϵK(ruir^ui)2=(u,i)ϵK(ruif=1FPu,kqi,k)2+λpu2+λqi2

    LFM损失函数极值用梯度下降法求解
    上面定义的损失函数里有两组参数Pufqif,随机梯度下降法需要首先对它们进行分贝求偏导数

    pikC=2qik+2λpuk

    qikC=2puk+2λqik

    然后,根据随机梯度下降法,需要将参数沿着最速下降方向向前推进,因此可以得到如下递推公式:

    Puk=Puk+α(qikλpuk)

    qik=qik+α(pukλqik)

    其中,α是学习速率(learning rate),它的选取需要通过反复实现获得

    %23%23%23%20%E6%8E%A8%E8%8D%90%E7%B3%BB%E7%BB%9F%E6%AF%94%E8%B5%9B(%E5%B8%B8%E8%A7%81%E6%AF%94%E8%B5%9B)%0A%23%23%23%23%20%E6%8E%A8%E8%8D%90%E7%B3%BB%E7%BB%9F%E5%88%86%E7%B1%BB%0A**%E6%9C%80%E8%83%BD%E5%8F%98%E7%8E%B0%E7%9A%84%E6%9C%BA%E5%99%A8%E5%AD%A6%E4%B9%A0%E5%BA%94%E7%94%A8**%0A*%20%E5%9F%BA%E4%BA%8E%E5%BA%94%E7%94%A8%E9%A2%86%E5%9F%9F%E5%88%86%E7%B1%BB%EF%BC%9A%E7%94%B5%E5%AD%90%E5%95%86%E5%8A%A1%E6%8E%A8%E8%8D%90%EF%BC%8C%E7%A4%BE%E4%BA%A4%E5%A5%BD%E5%8F%8B%E6%8E%A8%E8%8D%90%EF%BC%8C%E6%90%9C%E7%B4%A2%E5%BC%95%E6%93%8E%E6%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85%88%E5%AF%B9%E5%AE%83%E4%BB%AC%E8%BF%9B%E8%A1%8C%E5%88%86%E8%B4%9D%E6%B1%82%E5%81%8F%E5%AF%BC%E6%95%B0%0A%24%24%5Cfrac%7B%5Cpartial%20C%7D%7B%5Cpartial%20p_%7Bik%7D%7D%20%3D%20-2q_%7Bik%7D%2B2%5Clambda%20p_%7Buk%7D%24%24%0A%24%24%5Cfrac%7B%5Cpartial%20C%7D%7B%5Cpartial%20q_%7Bik%7D%7D%3D%20-2p_%7Buk%7D%2B2%5Clambda%20q_%7Bik%7D%24%24%0A%E7%84%B6%E5%90%8E%EF%BC%8C%E6%A0%B9%E6%8D%AE%E9%9A%8F%E6%9C%BA%E6%A2%AF%E5%BA%A6%E4%B8%8B%E9%99%8D%E6%B3%95%EF%BC%8C%E9%9C%80%E8%A6%81%E5%B0%86%E5%8F%82%E6%95%B0%E6%B2%BF%E7%9D%80%E6%9C%80%E9%80%9F%E4%B8%8B%E9%99%8D%E6%96%B9%E5%90%91%E5%90%91%E5%89%8D%E6%8E%A8%E8%BF%9B%EF%BC%8C%E5%9B%A0%E6%AD%A4%E5%8F%AF%E4%BB%A5%E5%BE%97%E5%88%B0%E5%A6%82%E4%B8%8B%E9%80%92%E6%8E%A8%E5%85%AC%E5%BC%8F%EF%BC%9A%0A%24%24P_%7Buk%7D%3DP_%7Buk%7D%2B%5Calpha%20(q_%7Bik%7D-%5Clambda%20p_%7Buk%7D)%24%24%0A%24%24q_%7Bik%7D%3Dq_%7Bik%7D%2B%5Calpha(p_%7Buk%7D-%5Clambda%20q_%7Bik%7D)%24%24%0A%E5%85%B6%E4%B8%AD%2C%24%5Calpha%24%E6%98%AF%E5%AD%A6%E4%B9%A0%E9%80%9F%E7%8E%87(learning%20rate)%EF%BC%8C%E5%AE%83%E7%9A%84%E9%80%89%E5%8F%96%E9%9C%80%E8%A6%81%E9%80%9A%E8%BF%87%E5%8F%8D%E5%A4%8D%E5%AE%9E%E7%8E%B0%E8%8E%B7%E5%B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%E6%97%B6%E9%97%B4%E5%BA%8F%E5%88%97%E7%9A%84%E6%A8%A1%E5%9E%8B%E7%BB%84%E5%90%88%EF%BC%8C%E5%B0%8616%E4%B8%AA%E6%A8%A1%E5%9E%8B%E7%BB%93%E6%9E%9C%E8%BF%9B%E8%A1%8C%E5%8A%A0%E6%9D%83%E5%B9%B3%E5%9D%87%EF%BC%8C%E6%9C%80%E7%BB%88%E7%BB%93%E6%9E%9C%E4%B8%BA%E8%AF%A5%E4%BA%A7%E5%93%81%E7%9A%84%E8%B4%AD%E4%B9%B0%E6%A6%82%E7%8E%87%0A
    Win a contest, win a challenge
  • 相关阅读:
    JS(原生语法)_实现酷酷的动态简历
    Linux外在设备的使用
    查看系统内存信息
    查看CPU信息
    查看系统PCI设备
    配置网络
    Linux分区
    Observer
    Singleton
    Open closed principle
  • 原文地址:https://www.cnblogs.com/pandaboy1123/p/10375730.html
Copyright © 2020-2023  润新知