UKNN Implicit

This page analyzes the hyperparameter tuning results for the ItemKNN scorer in implicit-feedback mode.

Parameter Search Space

Parameter Type Distribution Values Selected
max_nbrs Integer Uniform 2 ≤ \(x\) ≤ 50 49
min_nbrs Integer Uniform 1 ≤ \(x\) ≤ 5 3
min_sim Float LogUniform 1e-06 ≤ \(x\) ≤ 0.1 0.000262

Final Result

Searching selected the following configuration:

{'max_nbrs': 49, 'min_nbrs': 3, 'min_sim': 0.00026240508724676277}

With these metrics:

{
    'RBP': 0.23466425011365616,
    'LogRBP': 2.3446404604154107,
    'NDCG': 0.41951498609396665,
    'RecipRank': 0.4160120081053097,
    'TrainTask': '5e4fad62-bd1a-45c5-a730-a97a239f13d3',
    'TrainTime': 0.1560280339908786,
    'TrainCPU': 0.14868300000000026,
    'TestTask': '139e94d1-6aab-4b87-9e3f-55481ad4d62c',
    'TestTime': 207.5802493270021,
    'TestCPU': 208.237,
    'timestamp': 1746469402,
    'checkpoint_dir_name': None,
    'done': True,
    'training_iteration': 1,
    'trial_id': 'd9bbe53d',
    'date': '2025-05-05_14-23-22',
    'time_this_iter_s': 209.8232183456421,
    'time_total_s': 209.8232183456421,
    'pid': 174121,
    'hostname': 'CCI-ws21',
    'node_ip': '10.248.127.152',
    'config': {'max_nbrs': 49, 'min_nbrs': 3, 'min_sim': 0.00026240508724676277},
    'time_since_restore': 209.8232183456421,
    'iterations_since_restore': 1,
    'experiment_tag': '26_max_nbrs=49,min_nbrs=3,min_sim=0.0003'
}

Parameter Behavior

Neighborhood Size

The neighborhood size is key argument to consider, let’s look at RMSE with repspect to that:

Filtering

There are two filtering parameters we also test — minimum neighbors and mininmum simialrity.