We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
描述这个 bug 参照官网自定义模型部分,自定义模型继承GeneralRecommender。 在自定义模型中__init__方法中先调用父类的__init__,在父类即GeneralRecommender的__init__中有self.n_users = dataset.num(self.USER_ID) 而在run.py文件中传入自定义模型的是TrainDataLoader:train_data
如何复现 复现这个 bug 的步骤:
预期 对您的预期作清晰简明的描述。
屏幕截图 报错信息 run.py
链接 添加能够复现 bug 的代码链接,如 Colab 或者其他在线 Jupyter 平台。(可选)
实验环境(请补全下列信息):
The text was updated successfully, but these errors were encountered:
@tctctctctc 感谢您对RecBole的关注与反馈! 模型构建部分文档确实存在错误,应修正为: model = NewModel(config, train_data.dataset).to(config['device']) 我们后续会对文档进行修正,再次感谢您的反馈!
model = NewModel(config, train_data.dataset).to(config['device'])
Sorry, something went wrong.
@tctctctctc 你好,感谢反馈,我们已经在 #1072 修复了这个问题。
Ethan-TZ
No branches or pull requests
描述这个 bug
参照官网自定义模型部分,自定义模型继承GeneralRecommender。
在自定义模型中__init__方法中先调用父类的__init__,在父类即GeneralRecommender的__init__中有self.n_users = dataset.num(self.USER_ID)
而在run.py文件中传入自定义模型的是TrainDataLoader:train_data
如何复现
复现这个 bug 的步骤:
预期
对您的预期作清晰简明的描述。
屏幕截图
![image](https://user-images.githubusercontent.com/31268918/144584372-7a739d5b-7b52-4742-a307-d8a14e5beb86.png)
![image](https://user-images.githubusercontent.com/31268918/144584942-4c1d41e8-74ef-4b5d-848b-c050bb6938f7.png)
报错信息
run.py
链接
添加能够复现 bug 的代码链接,如 Colab 或者其他在线 Jupyter 平台。(可选)
实验环境(请补全下列信息):
The text was updated successfully, but these errors were encountered: