This page analyzes the hyperparameter tuning results for the FlexMF scorer in explicit-feedback mode (a biased matrix factorization model trained with PyTorch).
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 |
5 |
regularization |
Float |
LogUniform |
0.0001 ≤ \(x\) ≤ 10 |
0.0247 |
learning_rate |
Float |
LogUniform |
0.001 ≤ \(x\) ≤ 0.1 |
0.00139 |
reg_method |
Categorical |
Uniform |
L2, AdamW |
AdamW |
Final Result
Searching selected the following configuration:
{
'embedding_size': 5,
'regularization': 0.024668070152210706,
'learning_rate': 0.0013901087865598942,
'reg_method': 'AdamW',
'epochs': 6
}
With these metrics:
{
'RBP': 0.09163965834018835,
'LogRBP': 1.404348820085433,
'NDCG': 0.3269639768819648,
'RecipRank': 0.2213617473772073,
'RMSE': 0.8222847780739189,
'TrainTask': 'd2e2db70-c748-4efa-ab7f-affc65c04192',
'TrainTime': None,
'TrainCPU': None,
'max_epochs': 50,
'done': True,
'training_iteration': 6,
'trial_id': '02df4d0d',
'date': '2025-05-06_22-13-31',
'timestamp': 1746584011,
'time_this_iter_s': 44.46161413192749,
'time_total_s': 291.95735359191895,
'pid': 35694,
'hostname': 'CCI-ws21',
'node_ip': '10.248.127.152',
'config': {
'embedding_size': 5,
'regularization': 0.024668070152210706,
'learning_rate': 0.0013901087865598942,
'reg_method': 'AdamW',
'epochs': 6
},
'time_since_restore': 44.46161413192749,
'iterations_since_restore': 1
}
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?