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

[feature] AsymKNN for user and item based KNN #2122

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

mkhe93
Copy link

@mkhe93 mkhe93 commented Dec 1, 2024

  • Implemented user-based and item-based asymmetric KNN versions as described in Aiolli (2013)

  • Updated the documentation and introduced the following parameters:

    • knn_method (str): [item, user]
      Specifies whether to use user-based or item-based KNN
    • k (int):
      Neighborhood size
    • alpha (float): [0, 1]
      Weight parameter for asymmetric cosine similarity
    • beta (float): [0, 1]
      Final score balance parameter
    • q (int):
      Exponent for the "locality of scoring function"

Created this algorothms for my researches. I'm happy for feedback and improvements!

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

Successfully merging this pull request may close these issues.

1 participant