TrajectoryReplayConfiguration
Replay/BC configuration: selection over the shared store and the imitation gate.
Methods
validate_bc_actions
validate_bc_actions() -> TrajectoryReplayConfigurationValues
bc_competence_gate
bc_competence_gate: str | None = NoneOptional competence utility used to down-weight BC samples from mastered start cells, so imitation pressure fades from sections the policy already executes reliably.
behaviour
behaviour: TrajectoryReplayBehaviourConfiguration | None = Nonecache_replays
cache_replays: bool = TrueCache replayed observations per (initial state, actions) slice and skip the emulator for repeat replays; replays are deterministic so cached entries never go stale. Trades memory (roughly 34 KB per cached step) for speed; disable to re-run every replay on the emulator.
max_bc_actions
max_bc_actions: int = Field(default=48, ge=1)Maximum number of actions in a cloned sub-segment slice.
min_bc_actions
min_bc_actions: int = Field(default=16, ge=1)Minimum number of actions in a cloned sub-segment slice. Cloning whole routes caused win/loss flip-flops, while one-action fragments imitate isolated frames rather than a coherent manoeuvre, so BC clones contiguous sub-segments of at least this many actions.
selection
selection: TrajectorySelectionConfiguration = Field(default_factory=TrajectoryDirectSelectionConfiguration)