t5lab.train¶
train
¶
Isolated minimal MAPPO train step + loop for Phase 1a.
DTE (team value = mean of the per-agent value head), two-action PG (goal offset + MVProp move), GAE + clipped-PG + value MSE + entropy, AdamW. 16 rollouts, never reduced. Reuses ctde_v0's _gae / make_optimizer / make_stencil / goal_targets read-only. No dual/selector/roles.
Verified config paths: rollouts_per_iter/iters top-level; gamma/gae_lambda/clip/ppo_epochs/ minibatches on cfg.trainer; vf_coef on cfg.loss; entropy on cfg.regularization; optax pattern matches ctde_v0 (params = eqx.filter(actor, is_array); opt.update(grads, opt_state, params)).
train_step
¶
train_step(env, actor, opt, opt_state, cfg, key, stencil, controller='mvprop')
One PPO iteration: 16 rollouts -> GAE -> ppo_epochs x minibatches clipped-PG.
Source code in experiments/t5lab/train.py
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 | |
train
¶
train(env, actor, cfg, key, controller='mvprop')
Full loop over cfg.iters. Returns (actor, history).
Source code in experiments/t5lab/train.py
88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 | |