datawhalechina / torch-rechub

A Lighting Pytorch Framework for Recommendation Models, Easy-to-use and Easy-to-extend.
MIT License
374 stars 69 forks source link

Fix(esmm_example):add one more classification task #57

Closed Hjh233 closed 5 months ago

Hjh233 commented 9 months ago

According to line110-111 in mtl_trainer.py: if isinstance(self.model, ESMM): loss = sum(loss_list[1:]) #ESSM only compute loss for ctr and ctcvr task we need to set three classification tasks in task_types to make sure totalloss = loss{ctr} + loss_{ctcvr}, otherwise, totalloss = loss{ctr}.

yinpu commented 7 months ago

模型这样修改后和esmm原始论文里面的实现不一样了

image