From 88736169ed688731dec47ee92270ca29fd112362 Mon Sep 17 00:00:00 2001
From: Eric Hambro <eric.hambro@gmail.com>
Date: Tue, 8 Jun 2021 16:42:44 -0700
Subject: [PATCH] Delete unnecessary utils.

---
 evaluation_utils/custom_wrappers.py | 32 -----------------------------
 1 file changed, 32 deletions(-)
 delete mode 100644 evaluation_utils/custom_wrappers.py

diff --git a/evaluation_utils/custom_wrappers.py b/evaluation_utils/custom_wrappers.py
deleted file mode 100644
index 8a4901a..0000000
--- a/evaluation_utils/custom_wrappers.py
+++ /dev/null
@@ -1,32 +0,0 @@
-import gym
-
-class EarlyTerminationNethack(gym.Wrapper):
-    """
-    To limit the timesteps for "Beginner" agents
-    We terminate the episode early if  
-        The minimum_score is not achieved without the cuttoff_timesteps
-
-    Participants should not edit this file
-    """
-    def __init__(self, env, minimum_score=1000, cutoff_timesteps=50000):
-        super().__init__(env)
-        self._minimum_score = minimum_score
-        self._cuttoff_timesteps = cutoff_timesteps
-        self._elapsed_steps = None
-        self._score = None
-
-    def step(self, action):
-        assert self._elapsed_steps is not None, "Cannot call env.step() before calling reset()"
-        observation, reward, done, info = self.env.step(action)
-        self._elapsed_steps += 1
-        self._score += reward
-        if self._elapsed_steps > self._cuttoff_timesteps and \
-           self._score < self._minimum_score:
-            info['Early Termination'] = not done
-            done = True
-        return observation, reward, done, info
-
-    def reset(self, **kwargs):
-        self._elapsed_steps = 0
-        self._score = 0
-        return self.env.reset(**kwargs)
\ No newline at end of file
-- 
GitLab