This page analyzes the hyperparameter tuning results for the FlexMF scorer in implicit-feedback mode with pairwise loss (Bayesian Personalized Ranking).
Parameter Search Space
/home/mde48/lenskit/lenskit-codex/.venv/lib/python3.12/site-packages/ray/tune/search/sample.py:700: RayDeprecationWarning: The `base` argument is deprecated. Please remove it as it is not actually needed in this method.
embedding_size |
Integer |
LogUniform |
4 ≤ \(x\) ≤ 512 |
28 |
regularization |
Float |
LogUniform |
0.0001 ≤ \(x\) ≤ 10 |
0.0944 |
learning_rate |
Float |
LogUniform |
0.001 ≤ \(x\) ≤ 0.1 |
0.00729 |
reg_method |
Categorical |
Uniform |
L2, AdamW |
AdamW |
negative_count |
Integer |
Uniform |
1 ≤ \(x\) ≤ 5 |
4 |
item_bias |
Categorical |
Uniform |
True, False |
False |
Final Result
Searching selected the following configuration:
{
'embedding_size': 28,
'regularization': 0.09440696778182281,
'learning_rate': 0.007288423436260736,
'reg_method': 'AdamW',
'negative_count': 4,
'item_bias': False,
'epochs': 9
}
With these metrics:
{
'RBP': 0.24746710839611455,
'LogRBP': 2.397762368597764,
'NDCG': 0.48229694013976976,
'RecipRank': 0.43796644750233243,
'TrainTask': '540c0794-575f-4b4c-9587-1db20550402b',
'TrainTime': None,
'TrainCPU': None,
'max_epochs': 50,
'done': False,
'training_iteration': 9,
'trial_id': '9c5ba5c6',
'date': '2025-05-04_23-03-25',
'timestamp': 1746414205,
'time_this_iter_s': 6.287060976028442,
'time_total_s': 65.75870728492737,
'pid': 2691241,
'hostname': 'CCI-ws21',
'node_ip': '10.248.127.152',
'config': {
'embedding_size': 28,
'regularization': 0.09440696778182281,
'learning_rate': 0.007288423436260736,
'reg_method': 'AdamW',
'negative_count': 4,
'item_bias': False,
'epochs': 9
},
'time_since_restore': 65.75870728492737,
'iterations_since_restore': 9
}
Parameter Analysis
Embedding Size
The embedding size is the hyperparameter that most affects the model’s fundamental logic, so let’s look at performance as a fufnction of it:
Iteration Completion
How many iterations, on average, did we complete?
How did the metric progress in the best result?
How did the metric progress in the longest results?