Coder Social home page Coder Social logo

Comments (2)

hyp1231 avatar hyp1231 commented on August 15, 2024

您好!抱歉回复晚了,我依次回复一下上述问题。

Q1: RecBole-GNN 中的 DiffNet 是否支持加载 review embedding?应该如何设置?
A1: 支持的。首先需要将 pretrained_review 设置为 True。接下来,假设您的数据集叫 data1,还需要进一步添加两个输入文件,用户侧特征 data1.user 和商品侧特征 data1.item。文件的格式如下(以 data1.user 为例):

user_id:token	user_review_emb:float_seq
xxx	1.00 2.00 3.00

因此如果您有 .npy 文件的话,可能还需要您手动转换一下。但通过这种形式,这些预训练特征会自动链接、对齐在交互数据上。

Q2: 为什么用户/商品数量不匹配?
A2: 一方面是因为用户和商品都会默认有一个 padding 位,另一方面可能由于配置文件中设置了数据筛选,交互数量不足的商品可能被删掉了。但是如果您通过 .user 和 .item 的形式加载预训练特征,则无需考虑数量是否匹配的问题,RecBole 库会自动处理。

from recbole-gnn.

KingGugu avatar KingGugu commented on August 15, 2024

好的,感谢回复,没有其它问题了。

from recbole-gnn.

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.