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

Final Result

Searching selected the following configuration:

{'max_nbrs': 49, 'min_nbrs': 1, 'min_sim': 0.027466739219779823}

With these metrics:

{
    'RBP': 0.10970675737757399,
    'LogRBP': 1.5842956548753646,
    'NDCG': 0.3651150733253991,
    'RecipRank': 0.3874499674567859,
    'TrainTask': '9526cc6e-a1b5-4d22-8531-3a2e3eeddd1a',
    'TrainTime': 0.04413939197547734,
    'TrainCPU': 0.048559999999999826,
    'TestTask': '53443585-d1e3-419c-b806-31f6a7a3cc35',
    'TestTime': 1.8049396800342947,
    'TestCPU': 8.149201,
    'timestamp': 1746652392,
    'checkpoint_dir_name': None,
    'done': True,
    'training_iteration': 1,
    'trial_id': 'b1928140',
    'date': '2025-05-07_17-13-12',
    'time_this_iter_s': 1.9647235870361328,
    'time_total_s': 1.9647235870361328,
    'pid': 1256024,
    'hostname': 'gracehopper1',
    'node_ip': '192.168.225.60',
    'config': {'max_nbrs': 49, 'min_nbrs': 1, 'min_sim': 0.027466739219779823},
    'time_since_restore': 1.9647235870361328,
    'iterations_since_restore': 1,
    'experiment_tag': '43_max_nbrs=49,min_nbrs=1,min_sim=0.0275'
}

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.