[TOC]
分别获取用户u和v评分了的物品字典,形如:{u:[1,2,3,4,7],v:[2,4,5,6]...}
分别获取用户u和v评分了的物品的平均值,形如:{u:3.4,v:1.6,...} ave_u ave_v
求用户u和v共同评分了的物品集合
判断交集ret_dict是否为空
- 空
- 非空 遍历ret_dict计算pcc
https://blog.csdn.net/weixin_34226706/article/details/86991937 https://zhidao.baidu.com/question/199567340219173605.html