why set some values to lambda or -lambda
lihuiliullh opened this issue · comments
May I know the purpose of the following code in model.forward()?
s_history_tag[s_history_tag != 0] = self.args.lambdax
o_history_tag[o_history_tag != 0] = self.args.lambdax
s_non_history_tag[s_history_tag == 1] = -self.args.lambdax
s_non_history_tag[s_history_tag == 0] = self.args.lambdax
o_non_history_tag[o_history_tag == 1] = -self.args.lambdax
o_non_history_tag[o_history_tag == 0] = self.args.lambdax
s_history_tag[s_history_tag == 0] = -self.args.lambdax
o_history_tag[o_history_tag == 0] = -self.args.lambdax