Spaces:
Sleeping
Sleeping
Score range fix (0, 1) in grader
Browse files
server/data_clean_env_environment.py
CHANGED
|
@@ -177,7 +177,7 @@ class DataCleanEnvironment(Environment):
|
|
| 177 |
current_score += 1.0
|
| 178 |
score = current_score / max_score
|
| 179 |
|
| 180 |
-
return score
|
| 181 |
|
| 182 |
@property
|
| 183 |
def state(self) -> State:
|
|
|
|
| 177 |
current_score += 1.0
|
| 178 |
score = current_score / max_score
|
| 179 |
|
| 180 |
+
return max(0.01, min(0.99, float(score)))
|
| 181 |
|
| 182 |
@property
|
| 183 |
def state(self) -> State:
|