elliot.recommender.knn.attribute_user_knn package¶
Submodules¶
elliot.recommender.knn.attribute_user_knn.attribute_user_knn module¶
Module description:
-
class
elliot.recommender.knn.attribute_user_knn.attribute_user_knn.
AttributeUserKNN
(data, config, params, *args, **kwargs)[source]¶ Bases:
elliot.recommender.recommender_utils_mixin.RecMixin
,elliot.recommender.base_recommender_model.BaseRecommenderModel
Attribute User-kNN proposed in MyMediaLite Recommender System Library
For further details, please refer to the paper
- Parameters
neighbors – Number of item neighbors
similarity – Similarity function
profile – Profile type (‘binary’, ‘tfidf’)
To include the recommendation model, add it to the config file adopting the following pattern:
models: AttributeUserKNN: meta: save_recs: True neighbors: 40 similarity: cosine profile: binary
-
property
name
¶