GithubHelp home page GithubHelp logo

Comments (2)

teal024 avatar teal024 commented on May 29, 2024

同样遇到了这个错误

from recbole.

Yilu114 avatar Yilu114 commented on May 29, 2024

您好,
您在运行RecBole时遇到的错误似乎与batch_user_num的计算有关,具体是batch_user_num = positive_u[-1] + 1这一行。错误消息表明'NoneType'对象不可订阅。

以下是一些诊断和可能解决问题的步骤:

  1. 检查数据加载

    • 确保您的数据集(ml-100k)正确加载并包含有效的用户-项目互动。
    • 验证您的test_ml.yaml配置文件中指定的数据路径指向正确的位置。
  2. 检查positive_u

    • 错误发生在尝试访问positive_u的索引时,positive_u似乎是一个列表或数组。
    • 检查positive_u是否正确初始化并包含有效数据。它应该是正用户索引的列表。
  3. 调试计算

    • 检查定义positive_u的上下文以及它如何用于计算batch_user_num
    • 确保positive_u不是None且具有有效值。
  4. 查看run_recbole.py脚本

    • 仔细检查您用来运行RecBole的命令:python run_recbole.py --model=WideDeep --dateset=ml-100k --config_files=test_ml.yaml
    • 确保没有拼写错误或遗漏的参数。

如果您继续面临问题,考虑提供更多上下文或分享额外的代码片段以便进一步调查。此外,检查RecBole文档或社区资源,了解与此错误相关的任何特定故障排除步骤,以下的文档链接可以进行参考。

from recbole.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.