Skip to content

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

@xudongMk

Description

@xudongMk

楼主你好,想问一下,在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),但是代码中这样看应该是相等的?另外,改进的相似度方法中,公式和代码对不上。是需要进一步推导嘛?

先谢过。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions