(self)
return obs
Do no-op action for a number of steps in [1, noop_max].
Do no-op action for a number of steps in [1, noop_max].
Do no - op action for a number of steps in [ 1 noop_max ] .
def _reset(self):
        """ Do no-op action for a number of steps in [1, noop_max]."""
        self.env.reset()
        if self.override_num_noops is not None:
            noops = self.override_num_noops
        else:
            noops = self.unwrapped.np_random.randint(1, self.noop_max + 1) #pylint: disable=E1101
        assert noops > 0
        obs = None
        for _ in range(noops):
            obs, _, done, _ = self.env.step(0)
            if done:
                obs = self.env.reset()
        return obs
def _reset ( self ) : self . env . reset ( ) if self . override_num_noops is not None : noops = self . override_num_noops else : noops = self . unwrapped . np_random . randint ( 1 , self . noop_max + 1 ) #pylint: disable=E1101 assert noops > 0 obs = None for _ in range ( noops ) : obs , _ , done , _ = self . env . step ( 0 ) if done : obs = self . env . reset ( ) return obs