Giter Club home page Giter Club logo

Comments (5)

Songweiping avatar Songweiping commented on July 4, 2024

你好,
在使用cross entropy loss时,实际上是把该问题看作一个多分类(multi-class classification)问题,每个样本的label是在一个batch内同位置所有items上的概率分布,即[0,0,....0,1,0,0,...,0],因为只有对角线上的概率值对应非0的label,所以只提取对角线上的值即可。这里其它item并不是像bpr loss中“负例”的概念。

from gru4rec_tensorflow.

lllmmmyyy avatar lllmmmyyy commented on July 4, 2024

明白了,谢谢!

from gru4rec_tensorflow.

lllmmmyyy avatar lllmmmyyy commented on July 4, 2024

还有一个问题,GRU4Rec.fit()函数在训练时,每一个iteration里只对1个time-step的RNN进行了计算,这种迭代方式,导致RNN梯度回传的时候,不会计算前1个time-step以外的参数的梯度,这种训练方式,相较于一个iteration里同时计算多个time-step的结果并且进行训练的方式,哪种会更好一些?

from gru4rec_tensorflow.

Songweiping avatar Songweiping commented on July 4, 2024

我个人认为使用标准的BPTT比较好。
可以参考我和原作者的讨论 hidasib/GRU4Rec#8

from gru4rec_tensorflow.

lllmmmyyy avatar lllmmmyyy commented on July 4, 2024

了解了,thanks

from gru4rec_tensorflow.

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.