wuch15 / KDD-NPA

Resources for the paper "NPA: News Recommendation with Personalized Attention"
47 stars 12 forks source link

IndexError: index 9335 is out of bounds for axis 0 with size 9335 site #3

Closed shainaraza closed 4 years ago

shainaraza commented 4 years ago

Hi thanks for such amazing work! I get the following error, please help with that image

Here 9335 are my documents

shainaraza commented 4 years ago

i think its solved by making browsed_news=news_words[all_user_pos[i]-1]

however, i get the same error after 21 iteration in first epoch

wuch15 commented 4 years ago

I guess this may be because some news indexes in the user history are not included in the "news_words" array? If so, you can just try filtering these news articles.

shainaraza commented 4 years ago

its resolved now, thanks you

frnk823 commented 3 years ago

its resolved now, thanks you

hi, could you please tell me how you resolved this issue?