RUCAIBox / RecBole

A unified, comprehensive and efficient recommendation library
https://recbole.io/
MIT License
3.27k stars 590 forks source link

[🐛BUG] 用一句话描述您的问题。case_study 对所有用户作测评,会出现full_like():argument'input'(position 1)must be Tensor,not NoneType报错 #2006

Open newfsyyy opened 4 months ago

newfsyyy commented 4 months ago

描述这个 bug 对 bug 作一个清晰简明的描述。 使用case study的例子,使用全排列对所有用户uid_series = np.arange(1, test_data.dataset.user_num)研究,在full_sort_scores()这个函数的 history_row=torch.cat([torch.full_like(...)])会报空错误,我不知道是不是我划分数据集的问题,测试集中存在用户没有记录的情况,这导致使用case study出错,我一一打印了这个history_item,在第4414条记录是None类型,使用的ml-1m数据集,按照0.8:0.1:0.1比例划分,固定种子2020 如何复现 复现这个 bug 的步骤:

  1. 您引入的额外 yaml 文件
  2. 您的代码
  3. 您的运行脚本 预期 对您的预期作清晰简明的描述。

屏幕截图 添加屏幕截图以帮助解释您的问题。(可选)

链接 添加能够复现 bug 的代码链接,如 Colab 或者其他在线 Jupyter 平台。(可选)

实验环境(请补全下列信息):