def test(self, use_dropout=False, feedback='argmax', allow_cheat=False, iters=None):
    ' Evaluate once on each instruction in the current environment '
    self.feedback = feedback
    if use_dropout:
        self.encoder.train()
        self.decoder.train()
        self.critic.train()
    else:
        self.encoder.eval()
        self.decoder.eval()
        self.critic.eval()
    super(Seq2SeqAgent, self).test(iters)
Evaluate once on each instruction in the current environment
def test(self, use_dropout=False, feedback='argmax', allow_cheat=False, iters=None):
    '  '
    self.feedback = feedback
    if use_dropout:
        self.encoder.train()
        self.decoder.train()
        self.critic.train()
    else:
        self.encoder.eval()
        self.decoder.eval()
        self.critic.eval()
    super(Seq2SeqAgent, self).test(iters)