Comments (5)
你好,
在使用cross entropy loss时,实际上是把该问题看作一个多分类(multi-class classification)问题,每个样本的label是在一个batch内同位置所有items上的概率分布,即[0,0,....0,1,0,0,...,0],因为只有对角线上的概率值对应非0的label,所以只提取对角线上的值即可。这里其它item并不是像bpr loss中“负例”的概念。
from gru4rec_tensorflow.
明白了,谢谢!
from gru4rec_tensorflow.
还有一个问题,GRU4Rec.fit()函数在训练时,每一个iteration里只对1个time-step的RNN进行了计算,这种迭代方式,导致RNN梯度回传的时候,不会计算前1个time-step以外的参数的梯度,这种训练方式,相较于一个iteration里同时计算多个time-step的结果并且进行训练的方式,哪种会更好一些?
from gru4rec_tensorflow.
我个人认为使用标准的BPTT比较好。
可以参考我和原作者的讨论 hidasib/GRU4Rec#8
from gru4rec_tensorflow.
了解了,thanks
from gru4rec_tensorflow.
Related Issues (20)
- A question about evaluation during training step HOT 2
- A question about the column:Session_ID HOT 1
- 关于训练中的loss问题 HOT 1
- TypeError: unhashable type: 'list'
- MultiRNNCell build HOT 2
- one question in predict
- 关于验证集的使用 HOT 1
- 负采样的操作 HOT 1
- Validation loss is coming out as Nan
- Cannot save the model in .pkl file
- Requirements is incomplete HOT 3
- Tenosrflow 2.0
- 咨询下,修改哪些参数可以减少内存的占用?
- It seems "top1" loss function do not work in this tf implementation? HOT 5
- There maybe a problem in the code? HOT 2
- 666,Thank you, Dr. Song HOT 5
- A question about the testing process. HOT 2
- 是否有在实际场景中应用? HOT 3
- data issue HOT 1
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 gru4rec_tensorflow.