Closed zhongshsh closed 1 year ago
https://github.com/enoche/MMRec/blob/master/src/models/itemknncbf.py#L67-L69
def calculate_loss(self, interaction): tmp_v = torch.tensor(0.0) return tmp_v
Thanks for your feedback. calculate_loss is a dummy function. ItemKNNCBF has no parameters to learn. Please check the paper.
calculate_loss
https://github.com/enoche/MMRec/blob/master/src/models/itemknncbf.py#L67-L69