Skip to content

loss needs masking for padding labels? #2

@cmxcn

Description

@cmxcn

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions