shank commited on
Commit
0769caa
·
1 Parent(s): ea7105c

Fix: Changed scores range

Browse files
env/__pycache__/__init__.cpython-310.pyc CHANGED
Binary files a/env/__pycache__/__init__.cpython-310.pyc and b/env/__pycache__/__init__.cpython-310.pyc differ
 
env/__pycache__/sandbox.cpython-310.pyc CHANGED
Binary files a/env/__pycache__/sandbox.cpython-310.pyc and b/env/__pycache__/sandbox.cpython-310.pyc differ
 
env/graders/__pycache__/__init__.cpython-310.pyc CHANGED
Binary files a/env/graders/__pycache__/__init__.cpython-310.pyc and b/env/graders/__pycache__/__init__.cpython-310.pyc differ
 
env/graders/__pycache__/base_grader.cpython-310.pyc CHANGED
Binary files a/env/graders/__pycache__/base_grader.cpython-310.pyc and b/env/graders/__pycache__/base_grader.cpython-310.pyc differ
 
env/graders/__pycache__/grader_easy.cpython-310.pyc CHANGED
Binary files a/env/graders/__pycache__/grader_easy.cpython-310.pyc and b/env/graders/__pycache__/grader_easy.cpython-310.pyc differ
 
env/graders/__pycache__/grader_hard.cpython-310.pyc CHANGED
Binary files a/env/graders/__pycache__/grader_hard.cpython-310.pyc and b/env/graders/__pycache__/grader_hard.cpython-310.pyc differ
 
env/graders/__pycache__/grader_medium.cpython-310.pyc CHANGED
Binary files a/env/graders/__pycache__/grader_medium.cpython-310.pyc and b/env/graders/__pycache__/grader_medium.cpython-310.pyc differ
 
env/graders/base_grader.py CHANGED
@@ -50,5 +50,5 @@ class BaseGrader(ABC):
50
  return False
51
 
52
  def _clamp(self, value: float) -> float:
53
- """Clamp a value to [0.0, 1.0]."""
54
- return max(0.0, min(1.0, value))
 
50
  return False
51
 
52
  def _clamp(self, value: float) -> float:
53
+ """Clamp a value to (0.0, 1.0)."""
54
+ return max(0.01, min(0.99, value))
env/tasks/__pycache__/__init__.cpython-310.pyc CHANGED
Binary files a/env/tasks/__pycache__/__init__.cpython-310.pyc and b/env/tasks/__pycache__/__init__.cpython-310.pyc differ
 
env/tasks/__pycache__/registry.cpython-310.pyc CHANGED
Binary files a/env/tasks/__pycache__/registry.cpython-310.pyc and b/env/tasks/__pycache__/registry.cpython-310.pyc differ
 
env/tasks/__pycache__/task_easy.cpython-310.pyc CHANGED
Binary files a/env/tasks/__pycache__/task_easy.cpython-310.pyc and b/env/tasks/__pycache__/task_easy.cpython-310.pyc differ
 
env/tasks/__pycache__/task_hard.cpython-310.pyc CHANGED
Binary files a/env/tasks/__pycache__/task_hard.cpython-310.pyc and b/env/tasks/__pycache__/task_hard.cpython-310.pyc differ
 
env/tasks/__pycache__/task_medium.cpython-310.pyc CHANGED
Binary files a/env/tasks/__pycache__/task_medium.cpython-310.pyc and b/env/tasks/__pycache__/task_medium.cpython-310.pyc differ
 
tests/__pycache__/__init__.cpython-310.pyc CHANGED
Binary files a/tests/__pycache__/__init__.cpython-310.pyc and b/tests/__pycache__/__init__.cpython-310.pyc differ
 
tests/__pycache__/test_graders.cpython-310-pytest-8.1.0.pyc CHANGED
Binary files a/tests/__pycache__/test_graders.cpython-310-pytest-8.1.0.pyc and b/tests/__pycache__/test_graders.cpython-310-pytest-8.1.0.pyc differ