Item remap id 0 may cause KeyError
UesugiErii opened this issue · comments
R.S commented
In your preprocess code, item new remap id start from 1, and 0 for padding item id.
But in train.evaluate_full function, D, I = gpu_index.search(user_embs, topN)
, I
may contains 0, since item_cate_map dont have 0 as key, so an error occurred in compute_diversity
function.
Two error example logs are shown below