GithubHelp home page GithubHelp logo

[🐛BUG] 利用自定义数据集跑GRU4Rec模型报错无timestamp序列,但已经在.yaml文件中load_col:指定了timestamp列且自定义数据集中存在timestamp about recbole HOT 2 OPEN

Gabrielle240125 avatar Gabrielle240125 commented on May 24, 2024
[🐛BUG] 利用自定义数据集跑GRU4Rec模型报错无timestamp序列,但已经在.yaml文件中load_col:指定了timestamp列且自定义数据集中存在timestamp

from recbole.

Comments (2)

Gabrielle240125 avatar Gabrielle240125 commented on May 24, 2024

已解决:
1.更新到Recbole1.2.0
2.原子文件本质上是 .tsv 文件,和 csv 文件类似,只是 csv 文件使用逗号作为分隔符,而 tsv 使用制表符作为分隔符。可以用 python 的 dataframe 进行预处理,导出时选择 sep='\t' ,注意表头的名称需要符合原子文件的要求。
3.如果要加在额外的用户或物品属性,只需要在文件中包含对应的特征段即可,比如对于 ml-1m 数据集可以用如下命令加载 item 中的 genre 属性,从而运行 GRU4RecF 模型:

load_col:
inter: [user_id, item_id, rating, timestamp]
item: [item_id, genre]
selected_features: [genre]

from recbole.

Fotiligner avatar Fotiligner commented on May 24, 2024

@Gabrielle240125 您好!您的解决方法没有问题,我们也会在后续更新中优化对自定义输入数据构造方式的说明

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.