LibRecommender icon indicating copy to clipboard operation
LibRecommender copied to clipboard

Issue in the retraining of the Pinsage model

Open NomanSaleem4 opened this issue 2 years ago • 1 comments

Hey Man first Thanks for quickly responsding every time.

So now, here is the error while retraining the pinsage model: IndexError: index copy (): Number of indices (334) should be equal to source.size(dim) (106)

Here are the old and new data infos:

old data_info:  n_users: 385, n_items: 334, data density: 0.3111 % 
new data_info:  n_users: 447, n_items: 366, data density: 0.2445 %

Error traceback is also attached.

WhatsApp Image 2023-08-22 at 23 49 16

NomanSaleem4 avatar Aug 22 '23 19:08 NomanSaleem4

The error shows the new model only has 106 items. You can use print("new n_items: ", model.data_info.n_items) to verify it.

I suspect you used the previous data_info in the new model construction, but without seeing all the code I'm not sure about this.

massquantity avatar Aug 23 '23 02:08 massquantity