IKNN 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 2
min_sim Float LogUniform 1e-06 ≤ \(x\) ≤ 0.1 0.00311

Final Result

Searching selected the following configuration:

{'max_nbrs': 49, 'min_nbrs': 2, 'min_sim': 0.0031071803184892018}

With these metrics:

{
    'RBP': 0.1654696444309755,
    'LogRBP': 1.9952724514482298,
    'NDCG': 0.38235095170254646,
    'RecipRank': 0.32524157936875886,
    'TrainTask': '938bca3e-2af3-4732-98ef-dd4628a7ee93',
    'TrainTime': 2.9597552960040048,
    'TrainCPU': 3.011821,
    'TestTask': '1a508a25-c1f4-493d-83ee-76428832e9ae',
    'TestTime': 228.37191651196918,
    'TestCPU': 1464.9385929999999,
    'timestamp': 1746674529,
    'checkpoint_dir_name': None,
    'done': True,
    'training_iteration': 1,
    'trial_id': '866d5704',
    'date': '2025-05-07_23-22-09',
    'time_this_iter_s': 242.94981741905212,
    'time_total_s': 242.94981741905212,
    'pid': 1599845,
    'hostname': 'gracehopper1',
    'node_ip': '192.168.225.60',
    'config': {'max_nbrs': 49, 'min_nbrs': 2, 'min_sim': 0.0031071803184892018},
    'time_since_restore': 242.94981741905212,
    'iterations_since_restore': 1,
    'experiment_tag': '28_max_nbrs=49,min_nbrs=2,min_sim=0.0031'
}

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.