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

Diagonals in Item-Item Similarity Matrix Set to Zero #37

Open
r-gavin opened this issue Jun 20, 2019 · 0 comments
Open

Diagonals in Item-Item Similarity Matrix Set to Zero #37

r-gavin opened this issue Jun 20, 2019 · 0 comments

Comments

@r-gavin
Copy link

r-gavin commented Jun 20, 2019

Hello,

I have been running some tests with a catalog of 50 unique items and a usage file of 200 unique users. After training the model, I can construct a 'user recommendation matrix' from the recommendations (k = 50) for each user. From this, and believing that SAR builds the user affinity matrix in the way that I think it does, I am able to fully reconstruct the item-item similarity matrix.

When I reconstruct the item-item similarity matrix, I find that ALL of the diagonal values are set to zero. This behavior is observed with cooccurrence, jaccard, and lift.

Please tell me if this is the desired behavior, and if so, why. I can not find any reason to set these diagonal elements (essentially a measure of an items frequency) to zero.

Thanks,
Ryan

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