Skip to content

Feature/asym knn algorithms#2

Merged
mkhe93 merged 3 commits intomasterfrom
feature/AsymKNN_algorithms
Dec 1, 2024
Merged

Feature/asym knn algorithms#2
mkhe93 merged 3 commits intomasterfrom
feature/AsymKNN_algorithms

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