Skip to content

Item remap id 0 may cause KeyError #29

@UesugiErii

Description

@UesugiErii

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

GRU4REC_5.LOG
DNN_5_taobao.LOG

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions