Arrowman123 commited on
Commit
092f499
·
verified ·
1 Parent(s): 654befb
Files changed (1) hide show
  1. environment.py +1 -4
environment.py CHANGED
@@ -1,5 +1,3 @@
1
- import random
2
-
3
  class SupportEnv:
4
  def __init__(self, cases):
5
  self.cases = cases
@@ -35,8 +33,7 @@ class SupportEnv:
35
  total = len(self.cases)
36
  score = self.correct_count / total if total > 0 else 0.0
37
 
38
- # ensure strict range
39
- return max(0.01, min(0.99, score))
40
 
41
  def _get_obs(self):
42
  case = self.cases[self.index]
 
 
 
1
  class SupportEnv:
2
  def __init__(self, cases):
3
  self.cases = cases
 
33
  total = len(self.cases)
34
  score = self.correct_count / total if total > 0 else 0.0
35
 
36
+ return max(0.05, min(0.95, score))
 
37
 
38
  def _get_obs(self):
39
  case = self.cases[self.index]