Skip to content

Dev#3

Merged
LizardAPN merged 5 commits into
mainfrom
dev
Apr 2, 2026
Merged

Dev#3
LizardAPN merged 5 commits into
mainfrom
dev

Conversation

@LizardAPN

Copy link
Copy Markdown
Owner

No description provided.

- Replaced dynamic batch size validation with a fixed list of choices to ensure consistency across trials.
- Updated the batch size selection logic to raise a `TrialPruned` exception if the chosen batch size is incompatible with the calculated buffer size, enhancing error handling during hyperparameter tuning.
- Updated the game script to support new gameplay modes: human vs MAPPO, MAPPO vs MAPPO (self-play), and random village demo.
- Added a new function for self-play using the same MAPPO policy for both teams, improving testing and training capabilities.
- Enhanced command-line arguments to allow selection between opponent and self-play modes, ensuring clear usage instructions.
- Updated documentation and logging to reflect the new gameplay features and configurations.
- Introduced new team reward configurations in `bot_rewards.yaml`, including penalties and bonuses related to hunger and food security.
- Enhanced the `GameEnv` class to finalize team rewards based on controlled bots, incorporating mean/sum calculations and terminal outcomes.
- Added new methods in `BotRewardCalculator` for team-level reward shaping and terminal bonuses, improving the reward system for bot training.
- Updated tests in `test_reward_bot.py` to validate the new team reward functionalities and ensure accurate calculations for various scenarios.
- Added `max_grad_norm` parameter to training configuration for improved gradient clipping.
- Updated Optuna tuning script to include new choices for `n_steps`, `gamma/gae` presets, and `checkpoint_interval`, enhancing hyperparameter search capabilities.
- Introduced `win_townhall_frac` metric in the episode metrics callback to track the fraction of wins via opponent town hall destruction, improving performance analysis.
- Modified training function to return `win_townhall_frac` alongside existing metrics, providing more insights into training outcomes.
- Introduced `--objective` argument in the Optuna tuning script to allow selection of metrics for optimization: `ep_rew_mean`, `win_townhall_frac`, and `win_frac`.
- Enhanced the episode metrics callback to compute and log the mean episode reward, improving performance tracking.
- Updated training function to return the mean episode reward alongside existing metrics, providing deeper insights into training outcomes.
- Added tests to validate the mean episode reward calculations, ensuring accuracy in metrics reporting.
@LizardAPN LizardAPN merged commit c4a3244 into main Apr 2, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant