full_sort_scores(uid_series, model, test_data)¶
Calculate the scores of all items for each user in uid_series.
The score of [pad] and history items will be set into -inf.
full_sort_topk(uid_series, model, test_data, k)¶
Calculate the top-k items’ scores and ids for each user in uid_series.
topk_scores (torch.Tensor): The scores of topk items.
topk_index (torch.Tensor): The index of topk items, which is also the internal ids of items.
- Return type