Comments (2)
同样遇到了这个错误
from recbole.
您好,
您在运行RecBole时遇到的错误似乎与batch_user_num
的计算有关,具体是batch_user_num = positive_u[-1] + 1
这一行。错误消息表明'NoneType'对象不可订阅。
以下是一些诊断和可能解决问题的步骤:
-
检查数据加载:
- 确保您的数据集(
ml-100k
)正确加载并包含有效的用户-项目互动。 - 验证您的
test_ml.yaml
配置文件中指定的数据路径指向正确的位置。
- 确保您的数据集(
-
检查
positive_u
:- 错误发生在尝试访问
positive_u
的索引时,positive_u
似乎是一个列表或数组。 - 检查
positive_u
是否正确初始化并包含有效数据。它应该是正用户索引的列表。
- 错误发生在尝试访问
-
调试计算:
- 检查定义
positive_u
的上下文以及它如何用于计算batch_user_num
。 - 确保
positive_u
不是None
且具有有效值。
- 检查定义
-
查看
run_recbole.py
脚本:- 仔细检查您用来运行RecBole的命令:
python run_recbole.py --model=WideDeep --dateset=ml-100k --config_files=test_ml.yaml
。 - 确保没有拼写错误或遗漏的参数。
- 仔细检查您用来运行RecBole的命令:
如果您继续面临问题,考虑提供更多上下文或分享额外的代码片段以便进一步调查。此外,检查RecBole文档或社区资源,了解与此错误相关的任何特定故障排除步骤,以下的文档链接可以进行参考。
- 评估 | RecBole
- 培训与评估介绍 — RecBole 1.2.0 文档
- [问题] 使用大型评估批量大小加速评估 #1556 - GitHub
- github/codeql#8712
- https://blog.csdn.net/qq_41595149/article/details/119249132
- https://stackoverflow.com/questions/65606514/i-have-an-error-with-my-jsconfig-json-in
- https://ithelp.ithome.com.tw/articles/10227493
- libp2p/js-libp2p#1273
from recbole.
Related Issues (20)
- [🐛BUG] LightGCN在ml-100k数据集上性能不佳 HOT 6
- Parameters of HyperTuning
- [🐛BUG] Error running LightGCN
- [🐛BUG] 顺序推荐模型在使用带有label标签的数据集并且使用排序评价指标(如NDCG)的时候会发生报错。 HOT 2
- 数据集想加入除了user_id和item_id的特征,应该修改哪部份代码呢?
- [🐛BUG] Handling scores on training items when evaluating based on ranking
- [🐛BUG] recbole1.2.0与recbole-cdr兼容问题 HOT 2
- 尝试用General recommendation models进行个性化试题推荐发现效果不太好,求助 HOT 1
- 关于recbole中知识图谱数据集的问题请教 HOT 2
- run_hyper训练未完成 HOT 1
- [🐛BUG] Context-aware recommenders not properly embedding float sequences.
- 在训练的每一轮结束后释放显存缓冲区
- 想请问如何取出数据集的一部分进行训练?(小白)
- Context-aware DeepFM not learning HOT 2
- 我想请教一个ml-1m知识图谱数据集的配置信息问题 HOT 1
- 请问序列推荐时如何实现每一个时间步都进行预测
- [🐛BUG] Migration errors in SASRec
- 使用recbole1.2.0自动下载知识图谱数据集ml-1m时发生错误
- 使用recbole1.2.0时发现ml-1m的数据数量对不上
- [💡SUG] 请问如何输入id,利用case study或其他函数,输出测试集中用户实际购买的商品?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from recbole.