SLIM model for top_n recommendation
This is a C++ implementation of the top_n recommendation algorithm SLIM from the paper
Ning, Xia, and George Karypis. "Slim: Sparse linear methods for top-n recommender systems." 2011 11th IEEE International Conference on Data Mining. IEEE, 2011.
- gcc
- OpenMP
- Type make to compile the code and generate the excutable
- Run
./slim data_file l1 l2 top_n num_threads eps
data_file
: path to the datasetl1
: hyperparameter for l1 regularization which controls the sparsity of the modell2
: hyperparameter for l2 regularizationtop_n
: length of recommended listsnum_threads
: number of threads available to accelerate the training processeps
: number to control the convergence of the model
The program treats each interaction as implicit feedback. The dataset shoud have three columns and be formated as
user_id, item_id, timestamp
A sample dataset amazon_game_5.csv is uploaded.