(self)
return self.observation
Reset this environment.
Reset this environment.
Reset this environment .
def reset(self):
    """Reset this environment."""
    self._cur_sequence = next(self._data)
    # Position contains 2 indices: which sequnece are we in? (input1, output1,
    # input2, output2 and so on) and which token in the sequence are we in?
    self._cur_position = (0, 0)
    self._response = []
    return self.observation
def reset ( self ) : self . _cur_sequence = next ( self . _data ) # Position contains 2 indices: which sequnece are we in? (input1, output1, # input2, output2 and so on) and which token in the sequence are we in? self . _cur_position = ( 0 , 0 ) self . _response = [ ] return self . observation