EduKTM
EduKTM copied to clipboard
AKT Bug
🐛 Description
https://github.com/bigdata-ustc/EduKTM/blob/main/EduKTM/AKT/AKTNet.py#L273 The mask_fill operation on this line should be replaced with mask_fill_, otherwise it will cause data leakage
What have you tried to solve it?
origin
scores.masked_fill(mask == 0, -1e32)
solution
scores.masked_fill_(mask == 0, -1e32)