AttRec icon indicating copy to clipboard operation
AttRec copied to clipboard

Why HR and MRR become smaller after each epoch?

Open linh47 opened this issue 5 years ago • 7 comments

epoch 1, mean_loss0.130139, test HR@50: 0.322375, test MRR: 0.0353417 epoch 2, mean_loss0.0528188, test HR@50: 0.336161, test MRR: 0.0330826 epoch 3, mean_loss0.0253366, test HR@50: 0.316013, test MRR: 0.0339782 epoch 4, mean_loss0.0166349, test HR@50: 0.306469, test MRR: 0.0332131 ………………

epoch 28, mean_loss0.00114451, test HR@50: 0.246023, test MRR: 0.0233681 epoch 29, mean_loss0.00107539, test HR@50: 0.244963, test MRR: 0.0247977 epoch 30, mean_loss0.00104046, test HR@50: 0.240721, test MRR: 0.0242149

The paper states that these two values should be larger as possible.I ran the original author's code and it got smaller and smaller, I didn't understand why. Could you please tell me why it is calculated like this? image

linh47 avatar Feb 08 '20 06:02 linh47

QQ图片20200208142659

linh47 avatar Feb 08 '20 06:02 linh47

Sorry, I am not the author of the original paper. I tried to reproduce the paper but found it difficult to achieve the effect in the paper. I have fixed the code。

slientGe avatar Feb 09 '20 15:02 slientGe

@slientGe Thank you,it works now. I found the paper author open source on github as DeepRec,but he's code has the same problem that HR and MRR becomes smaller after each epoch. https://github.com/cheungdaven/DeepRec Can you please look at his code and find out what the problem is? I find your model structure is a bit different.If you would like to communicate with me further, my WeChat is leroyi47.

linh47 avatar Feb 10 '20 04:02 linh47

@slientGe Thank you,it works now. I found the paper author open source on github as DeepRec,but he's code has the same problem that HR and MRR becomes smaller after each epoch. https://github.com/cheungdaven/DeepRec Can you please look at his code and find out what the problem is? I find your model structure is a bit different.If you would like to communicate with me further, my WeChat is leroyi47.

hello,did it work now? I ran the code and the results are the same like you,which is becoming samller and smaller.

Leathertiger avatar Sep 02 '20 11:09 Leathertiger

Sorry, I am not the author of the original paper. I tried to reproduce the paper but found it difficult to achieve the effect in the paper. I have fixed the code。

Hello,did you fix the code? I ran the code but the results of HR@50 and MRR became smaller after each epoch.

Leathertiger avatar Sep 02 '20 11:09 Leathertiger

Sorry, I am not the author of the original paper. I tried to reproduce the paper but found it difficult to achieve the effect in the paper. I have fixed the code。

Hello,did you fix the code? I ran the code but the results of HR@50 and MRR became smaller after each epoch.

In fact, you don’t need to run so many epoches each time, small datasets are easy to overfit, resulting in no improvement in results

linh47 avatar Sep 02 '20 11:09 linh47

Sorry, I am not the author of the original paper. I tried to reproduce the paper but found it difficult to achieve the effect in the paper. I have fixed the code。

Hello,did you fix the code? I ran the code but the results of HR@50 and MRR became smaller after each epoch.

In fact, you don’t need to run so many epoches each time, small datasets are easy to overfit, resulting in no improvement in results

Thank you,I understand.I found the rusults were becoming larger before the 6 epoch,after that,which was smaller.It's overfit.

Leathertiger avatar Sep 04 '20 08:09 Leathertiger