Spaces:
Sleeping
Sleeping
ReverseCoder1 commited on
Commit ·
512a43a
1
Parent(s): 9943d2c
Add score 0 to 1
Browse files- environment.py +2 -1
environment.py
CHANGED
|
@@ -280,7 +280,8 @@ class DataCleaningEnv:
|
|
| 280 |
component_scores[k] * w
|
| 281 |
for k, w in weights.items()
|
| 282 |
) - penalty
|
| 283 |
-
|
|
|
|
| 284 |
|
| 285 |
return Reward(
|
| 286 |
total=round(total, 4),
|
|
|
|
| 280 |
component_scores[k] * w
|
| 281 |
for k, w in weights.items()
|
| 282 |
) - penalty
|
| 283 |
+
# Clamp to strictly (0, 1) excluding endpoints for grader compliance
|
| 284 |
+
total = max(0.0001, min(0.9999, total))
|
| 285 |
|
| 286 |
return Reward(
|
| 287 |
total=round(total, 4),
|