RUCAIBox / RecBole

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

[🐛BUG] Describe your proTraceback (most recent call last): File "run.py", line 3, in <module> run_recbole(model='NFM', dataset='douban') File "D:\Download\RecBole-master\RecBole-master\recbole\quick_start\quick_start.py", line 89, in run_recbole best_valid_score, best_valid_result = trainer.fit( File "D:\Download\RecBole-master\RecBole-master\recbole\trainer\trainer.py", line 437, in fit train_loss = self._train_epoch( File "D:\Download\RecBole-master\RecBole-master\recbole\trainer\trainer.py", line 243, in _train_epoch losses = loss_func(interaction) File "D:\Download\RecBole-master\RecBole-master\recbole\model\context_aware_recommender\nfm.py", line 65, in calculate_loss label = interaction[self.LABEL] File "D:\Download\RecBole-master\RecBole-master\recbole\data\interaction.py", line 135, in __getitem__ return self.interaction[index] KeyError: 'label'blem in one sentence. #1790

Open sunli-destiny opened 1 year ago

sunli-destiny commented 1 year ago

Describe the bug A clear and concise description of what the bug is. 环境已配置好,从git下载的源码,直接打开项目,下载了你们的数据集,运行时报错 label? To Reproduce Steps to reproduce the behavior:

  1. extra yaml file
  2. your code
  3. script for running

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Colab Links If applicable, add links to Colab or other Jupyter laboratory platforms that can reproduce the bug.

Desktop (please complete the following information):

zhengbw0324 commented 1 year ago

@sunli-destiny 您好! 下载数据集后需要根据您的任务和模型配置相应参数,具体配置方法可以参考我们的文档