mirror of
https://github.com/jcreek/CosmicClash.git
synced 2026-09-11 08:23:45 +00:00
feat(*): Start curriculum generation 2, seeded from curric-s5-aggression
This commit is contained in:
@@ -100,6 +100,14 @@ def parse_args():
|
||||
"--airborne-penalty", type=float, default=None,
|
||||
help="Overrides ShipAIController.airborne_penalty (dense per-tick cost scaled by height above the floor)",
|
||||
)
|
||||
curriculum.add_argument(
|
||||
"--ball-velocity-to-goal-weight", type=float, default=None,
|
||||
help="Overrides ShipAIController.ball_velocity_to_goal_weight (dense reward for the ball's velocity toward the attack goal)",
|
||||
)
|
||||
curriculum.add_argument(
|
||||
"--goal-reward", type=float, default=None,
|
||||
help="Overrides TrainingMode.goal_reward (terminal reward for actually scoring)",
|
||||
)
|
||||
|
||||
return parser.parse_args()
|
||||
|
||||
@@ -121,6 +129,8 @@ def _curriculum_kwargs(args) -> dict:
|
||||
"ai_ball_distance_penalty": args.ball_distance_penalty,
|
||||
"ai_ball_touch_reward": args.ball_touch_reward,
|
||||
"ai_airborne_penalty": args.airborne_penalty,
|
||||
"ai_ball_velocity_to_goal_weight": args.ball_velocity_to_goal_weight,
|
||||
"goal_reward": args.goal_reward,
|
||||
}
|
||||
return {key: value for key, value in mapping.items() if value is not None}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user