Skip to content

Confusion about item_id_list read order and padding #1326

Answered by Wicknight
gcbrown asked this question in Q&A
Discussion options

You must be logged in to vote

@gcbrown
First, all sequential recommendation models adopt various ways to model sequential data. Just like the processing of sequential data in NLP, padding makes it convenient for us to process variable length sequence. Therefore, padding is necessary.

Second, for the padding position, I think our padding method is relatively general and conventional. After padding, the earliest interacted items are located in index 0, while the most recently interacted items are located in index [item_seq_len - 1]. This is consistent with our general understanding, and is convenient for other models to use.

Third, you can modify the code if you want to change the padding logic. You are welcome to commu…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Sherry-XLL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
good first issue Good for newcomers question Further information is requested
2 participants