t5lab.actor¶
actor
¶
T5Actor — isolated composition of ctde_v0's Backbone + a goal-region head + the learned
MVProp planner. Zero ctde_v0 edits: Backbone is imported read-only.
Two-level PG policy (both trained end-to-end): L3 goal: z = Backbone(obs, adj); goal_logits = goal_head(z) -> sample a goal offset. L1 move: MVProp floods a value field over the belief occupancy toward the chosen goal; move_logits = field value at the agent's 5 move-neighbours -> sample the move. The move being a sampled readout of the MVProp field is what makes MVProp RL-trainable (a hard argmax descent would give it no gradient).
T5Actor
¶
T5Actor(in_ch, K_goal, K_prop, backbone_cfg, *, key, dropout=0.0)
Bases: Module
Source code in experiments/t5lab/actor.py
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | |
belief
¶
belief(obs, adj_off, *, key=None, inference=False)
(C,H,W)-per-agent obs + (N,N) adjacency -> (N,W) belief.
Source code in experiments/t5lab/actor.py
43 44 45 | |
heads
¶
heads(z)
(N,W) belief -> (goal_logits (N,K_goal), value (N,), lambda2_hat (N,)).
Source code in experiments/t5lab/actor.py
47 48 49 50 51 52 | |
move_logits
¶
move_logits(positions, goal_cells, blocked)
(N,2) agent cells, (N,2) goal cells, (N,H,W) belief-occupancy -> (N,5) move logits. Higher = better move (ascends the MVProp value field toward the goal).
Source code in experiments/t5lab/actor.py
54 55 56 57 58 59 60 61 62 | |