NuCon/nucon
Dominik Roth 3dfe1aa673 fix: flat Box action space, SB3/HER compatibility, sim uninitialized param defaults
rl.py:
- Action space is now a flat Box (SAC/PPO require this, not Dict)
- _build_flat_action_space + _unflatten_action helpers shared by both envs
- Params with undefined bounds excluded from action space (SAC needs finite bounds)
- Fix _build_param_space: use `is not None` check instead of falsy `or` (0 is valid min_val)
- NuconGoalEnv obs params default to simulator.model.input_params when sim provided;
  obs_params kwarg overrides for real-game deployment with same param set
- SIM_UNCERTAINTY kept out of policy obs vector (not available at deployment);
  available in reward_obs passed to objectives/terminators/reward_fn
- _read_obs returns (gym_obs, reward_obs) cleanly instead of smuggling via dict
- NuconGoalEnv additional_objectives wired into step()

sim.py:
- Uninitialized params return type-default (0/False/first-enum) instead of "None"
- Enum params serialised as integer value, not repr string

README.md:
- Fix HerReplayBuffer import path (sb3 2.x: her.her_replay_buffer)
- Remove non-existent simulator.run() call
- Fix broken anchor links, remove "work in progress" from intro

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-12 19:16:07 +01:00
..
drake_assets Impl drake 2024-10-03 23:25:53 +02:00
__init__.py Dev and simulator fixes 2026-03-12 16:27:48 +01:00
core.py Add valve API, cheat_mode, and write-only param fixes 2026-03-12 17:16:08 +01:00
drake.py Fix typo in meme 2024-10-03 23:28:29 +02:00
model.py fix: retry game connection in __init__ as well as collect_data 2026-03-12 17:53:35 +01:00
rl.py fix: flat Box action space, SB3/HER compatibility, sim uninitialized param defaults 2026-03-12 19:16:07 +01:00
sim.py fix: flat Box action space, SB3/HER compatibility, sim uninitialized param defaults 2026-03-12 19:16:07 +01:00