Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

相似度矩阵计算以疑问 #1

Open
xudongMk opened this issue Mar 18, 2020 · 0 comments
Open

相似度矩阵计算以疑问 #1

xudongMk opened this issue Mar 18, 2020 · 0 comments

Comments

@xudongMk
Copy link

楼主你好,想问一下,在item相似度计算那块:
for index, i1 in enumerate(item_log):
for i2 in item_log[(index+1): ]:
weight = 1/(math.log(1+user_times_map[u[0]]))
mat[i1, i2] += weight
mat[i2, i1] += weight
按照方案中描述:使用了用户活跃度的置信度计算 Item CF,这里的sim(i,j)!=sim(j,i),但是代码中这样看应该是相等的?另外,改进的相似度方法中,公式和代码对不上。是需要进一步推导嘛?

先谢过。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant