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 48
min_nbrs Integer Uniform 1 ≤ \(x\) ≤ 5 2
min_sim Float LogUniform 1e-06 ≤ \(x\) ≤ 0.1 0.00131

Final Result

Searching selected the following configuration:

{'max_nbrs': 48, 'min_nbrs': 2, 'min_sim': 0.0013056990435927466}

With these metrics:

{
    'RBP': 0.07470347937379367,
    'LogRBP': 1.2000113598061093,
    'NDCG': 0.29928993657840586,
    'RecipRank': 0.27103613679466865,
    'TrainTask': '83bac2ca-44cd-4d69-8bd5-2d1c7a0b8658',
    'TrainTime': 0.12951058702310547,
    'TrainCPU': 0.12981699999999968,
    'TestTask': '2532ea8a-7fdc-4c63-a352-0aad91145375',
    'TestTime': 9.671972524025477,
    'TestCPU': 9.690847,
    'timestamp': 1746427248,
    'checkpoint_dir_name': None,
    'done': True,
    'training_iteration': 1,
    'trial_id': '0bd5a945',
    'date': '2025-05-05_02-40-48',
    'time_this_iter_s': 10.314058780670166,
    'time_total_s': 10.314058780670166,
    'pid': 2935588,
    'hostname': 'CCI-ws21',
    'node_ip': '10.248.127.152',
    'config': {'max_nbrs': 48, 'min_nbrs': 2, 'min_sim': 0.0013056990435927466},
    'time_since_restore': 10.314058780670166,
    'iterations_since_restore': 1,
    'experiment_tag': '16_max_nbrs=48,min_nbrs=2,min_sim=0.0013'
}

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.