elliot.recommender.algebric.slope_one package

Submodules

elliot.recommender.algebric.slope_one.slope_one module

Module description: Lemire, Daniel, and Anna Maclachlan. “Slope one predictors for online rating-based collaborative filtering.” Proceedings of the 2005 SIAM International Conference on Data Mining. Society for Industrial and Applied Mathematics

class elliot.recommender.algebric.slope_one.slope_one.SlopeOne(data, config, params, *args, **kwargs)[source]

Bases: elliot.recommender.recommender_utils_mixin.RecMixin, elliot.recommender.base_recommender_model.BaseRecommenderModel

Slope One Predictors for Online Rating-Based Collaborative Filtering

For further details, please refer to the paper

To include the recommendation model, add it to the config file adopting the following pattern:

models:
  SlopeOne:
    meta:
      save_recs: True
get_recommendations(k: int = 10)[source]
get_single_recommendation(mask, k, *args)[source]
property name
restore_weights()[source]
train()[source]

elliot.recommender.algebric.slope_one.slope_one_model module

Lemire, Daniel, and Anna Maclachlan. “Slope one predictors for online rating-based collaborative filtering.” Proceedings of the 2005 SIAM International Conference on Data Mining. Society for Industrial and Applied Mathematics

class elliot.recommender.algebric.slope_one.slope_one_model.SlopeOneModel(data)[source]

Bases: object

get_model_state()[source]
get_user_recs(u, mask, k=100)[source]
initialize()[source]
load_weights(path)[source]
predict(user, item)[source]
save_weights(path)[source]
set_model_state(saving_dict)[source]

Module contents