Hello, Song,
I found a problem in this kind of process.
In your evaluation.py:

I note that you picked ">" here, but if we use tanh as the final activation function, many scores of this preds may be equal to 1 for each user. And that means many scores of items are in one position at the same time. But this trick is unreasonable, because we cannot rank these items. If you use >=, the performance will be bad.
I think this is the implement in the original Hidash's code. So what do you think of this?
Looking forward to your reply.
Thank you ~
Hello, Song,
I found a problem in this kind of process.

In your evaluation.py:
I note that you picked ">" here, but if we use tanh as the final activation function, many scores of this preds may be equal to 1 for each user. And that means many scores of items are in one position at the same time. But this trick is unreasonable, because we cannot rank these items. If you use >=, the performance will be bad.
I think this is the implement in the original Hidash's code. So what do you think of this?
Looking forward to your reply.
Thank you ~