(self, action)
return max_frame, total_reward, done, info
Repeat action, sum reward, and max over last observations.
Repeat action, sum reward, and max over last observations.
Repeat action sum reward and max over last observations .
def _step(self, action):
        """Repeat action, sum reward, and max over last observations."""
        total_reward = 0.0
        done = None
        for _ in range(self._skip):
            obs, reward, done, info = self.env.step(action)
            self._obs_buffer.append(obs)
            total_reward += reward
            if done:
                break
        max_frame = np.max(np.stack(self._obs_buffer), axis=0)

        return max_frame, total_reward, done, info
def _step ( self , action ) : total_reward = 0.0 done = None for _ in range ( self . _skip ) : obs , reward , done , info = self . env . step ( action ) self . _obs_buffer . append ( obs ) total_reward += reward if done : break max_frame = np . max ( np . stack ( self . _obs_buffer ) , axis = 0 ) return max_frame , total_reward , done , info