(self)
Restarts the episode, resetting environment, model, and data.
Restarts the episode, resetting environment, model, and data.
Restarts the episode resetting environment model and data .
def restart(self):
    """Restarts the episode, resetting environment, model, and data."""
    if self._state != State.STOPPED:
      self._state = State.RESTARTING
    else:
      self._state = State.START
def restart ( self ) : if self . _state != State . STOPPED : self . _state = State . RESTARTING else : self . _state = State . START