[docs]defforward(self,reconstruction,X_ori,missing_mask,indicating_mask):# calculate loss for the observed reconstruction task (ORT)ORT_loss=self.ORT_weight*self.loss_calc_func(reconstruction,X_ori,missing_mask)# calculate loss for the masked imputation task (MIT)MIT_loss=self.MIT_weight*self.loss_calc_func(reconstruction,X_ori,indicating_mask)# calculate the loss to back propagate for model updatingloss=ORT_loss+MIT_lossreturnloss,ORT_loss,MIT_loss