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/asym knn algorithms #2

Merged
merged 3 commits into from
Dec 1, 2024
Merged

Feature/asym knn algorithms #2

merged 3 commits into from
Dec 1, 2024

Conversation

mkhe93
Copy link
Owner

@mkhe93 mkhe93 commented Dec 1, 2024

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

  • Updated the documentation to include additional parameters. The parameters are now as follows:

    • 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 algorithms for my researches. I'm happy for feedback and improvements!

@mkhe93 mkhe93 merged commit 3b030d3 into master Dec 1, 2024
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