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:
+4
-4
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user