WSDM2019-nextitnet icon indicating copy to clipboard operation
WSDM2019-nextitnet copied to clipboard

loss needs masking for padding labels?

Open cmxcn opened this issue 3 years ago • 1 comments

Hi Fajie, I have a question regarding the loss in https://github.com/fajieyuan/nextitnet/blob/master/generator_recsys.py

users' histories have different length, so padding zeros will be needed in input data. And for the loss calcutaion, we need to skip those padding parts, right? But it seems the code doesn't take that into account. Any thoughts about this? Thanks in advance.

cmxcn avatar Aug 09 '20 13:08 cmxcn

Hi it has no impact, you can also mask zero padding which is faster but the accuracy should be more or less the same

yuan2961634811 avatar Dec 17 '20 08:12 yuan2961634811