rename: objectives -> additional_objectives in NuconGoalEnv

Clarifies that the goal reward is the primary built-in objective;
additional_objectives are additive on top of it.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-12 18:56:34 +01:00
co-authored by Claude Sonnet 4.6
parent 36a33e74e5
commit 041e0ec1bd
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -280,8 +280,8 @@ class NuconGoalEnv(gym.Env):
seconds_per_step=5,
terminators=None,
terminate_above=0,
objectives=None,
objective_weights=None,
additional_objectives=None,
additional_objective_weights=None,
):
super().__init__()
@@ -351,9 +351,9 @@ class NuconGoalEnv(gym.Env):
self.action_space = spaces.Dict(action_spaces)
self._terminators = terminators or []
_objs = objectives or []
_objs = additional_objectives or []
self._objectives = [Objectives[o] if isinstance(o, str) else o for o in _objs]
self._objective_weights = objective_weights or [1.0] * len(self._objectives)
self._objective_weights = additional_objective_weights or [1.0] * len(self._objectives)
self._desired_goal = np.zeros(n_goals, dtype=np.float32)
self._total_steps = 0