-
Notifications
You must be signed in to change notification settings - Fork 0
Cornac Baselines
S.Saman .E edited this page Jul 15, 2026
·
1 revision
| Repository identifier | Model | Primary objective |
|---|---|---|
cornac_mf |
Matrix Factorization | Pointwise rating prediction |
cornac_pmf |
Probabilistic Matrix Factorization | Probabilistic rating prediction |
cornac_bpr |
Bayesian Personalized Ranking | Pairwise ranking |
cornac_wmf |
Weighted Matrix Factorization | Implicit-feedback reconstruction |
cornac_itemknn |
Item K-Nearest Neighbors | Item-similarity recommendation |
cornac_mlp |
Multi-Layer Perceptron | Nonlinear interaction learning |
python experiment_runner.py \
--dataset Beauty \
--epochs 100 \
--seed 0 \
--models \
cornac_pmf \
cornac_bpr \
cornac_itemknn \
cornac_mf \
cornac_wmf \
cornac_mlpThis command uses the default parameters defined in:
config/model_search_spaces.yml
python experiment_runner.py \
--dataset Beauty \
--epochs 100 \
--seed 0 \
--use_bo \
--models \
cornac_pmf \
cornac_bpr \
cornac_itemknn \
cornac_mf \
cornac_wmf \
cornac_mlppython experiment_runner.py \
--dataset Beauty \
--epochs 100 \
--seed 0 \
--models cornac_mfWith Bayesian optimization:
python experiment_runner.py \
--dataset Beauty \
--epochs 100 \
--seed 0 \
--use_bo \
--models cornac_mfpython experiment_runner.py \
--dataset Beauty \
--epochs 100 \
--seed 0 \
--models cornac_pmfpython experiment_runner.py \
--dataset Beauty \
--epochs 100 \
--seed 0 \
--models cornac_bprpython experiment_runner.py \
--dataset Beauty \
--epochs 100 \
--seed 0 \
--models cornac_wmfpython experiment_runner.py \
--dataset Beauty \
--epochs 100 \
--seed 0 \
--models cornac_itemknnpython experiment_runner.py \
--dataset Beauty \
--epochs 100 \
--seed 0 \
--models cornac_mlppython experiment_runner.py \
--dataset Beauty \
--epochs 100 \
--seed 0 \
--models rc_mf cornac_mfpython experiment_runner.py \
--dataset Beauty \
--epochs 100 \
--seed 0 \
--models rc_mf cornac_pmf cornac_bprpython experiment_runner.py \
--dataset Beauty \
--epochs 100 \
--seed 0 \
--models \
rc_mf \
cornac_pmf \
cornac_bpr \
cornac_itemknn \
cornac_mf \
cornac_wmf \
cornac_mlppython experiment_runner.py \
--dataset Beauty \
--epochs 100 \
--seed 0 \
--use_bo \
--models \
rc_mf \
cornac_pmf \
cornac_bpr \
cornac_itemknn \
cornac_mf \
cornac_wmf \
cornac_mlpfor seed in 0 1 2 3 4 5 6 7 8 9
do
python experiment_runner.py \
--dataset Beauty \
--epochs 100 \
--seed "$seed" \
--models \
cornac_pmf \
cornac_bpr \
cornac_itemknn \
cornac_mf \
cornac_wmf \
cornac_mlp
doneFor a full RC-MF and Cornac comparison:
for seed in 0 1 2 3 4 5 6 7 8 9
do
python experiment_runner.py \
--dataset Beauty \
--epochs 100 \
--seed "$seed" \
--models \
rc_mf \
cornac_pmf \
cornac_bpr \
cornac_itemknn \
cornac_mf \
cornac_wmf \
cornac_mlp
doneFor each dataset and seed:
- one train-test split is generated;
- all models use the same training observations;
- all models are evaluated on the same test observations;
- hyperparameter selection uses training data only;
- the test data are not used during Bayesian optimization;
- regression and ranking metrics are computed by the same evaluator.
The runner reports:
- RMSE;
- MSE;
- MAE;
- (R^2).
Lower RMSE, MSE, and MAE indicate better prediction accuracy.
When the model supports candidate-item scoring, the runner reports:
- Precision@5, @10, and @20;
- Recall@5, @10, and @20;
- NDCG@5, @10, and @20.
RC-MF · Residual-Calibrated Matrix Factorization
Authors: Seyedsaman (Saman) Emami· Alejandro Bellogin· Daniel Hernández-Lobato.
Grupo de Aprendizaje Automático · Universidad Autónoma de Madrid