Combine live representations with archived decision heads and measure the resulting policies.
More...
|
| | stats (self) |
| | representation_counts (self) |
| | train (self, max_env_steps) |
| | Train on an additional hard environment-step budget.
|
| | policy_for (self, individual, *, device=None) |
| | Recover a complete measured actor from the decision archive.
|
| | best_policy (self, *, device=None) |
| | Recover the highest-return archived policy.
|
| | audit (self, max_env_steps, *, seed=0) |
| | Remeasure archived full policies with separate reset and interaction budgets.
|
Combine live representations with archived decision heads and measure the resulting policies.
Cooperatively evolve fixed-layout deterministic Box policies.
Each representation has a greedy actor and policy-conditioned twin
TD3 critics. The critics consume raw decision-head weights as context,
with shared environment replay. At each generation archived heads
pair with current representations. Decision variation uses Iso+LineDD
or actor gradients. The fixed reporting archive stores the measured
full policy weights, so changing a representation cannot mutate
previously measured policies.
:param env_factory: Factory for a single Gymnasium environment.
:param archive: Empty parentless maximizing Grid or CVTGrid.
:param descriptor: Callback mapping a complete episode to its measured descriptors.
:param policy: PolicyConfig with at least one hidden layer.
:param td3: TD3Config for all representation learners.
:param representations: Number of live policy representations.
:param batch_size: Completed policies per generation, at least the number of representations.
:param critic_steps: TD3 minibatch updates per representation per eligible generation.
:param pg_steps: Gradient updates of each gradient offspring.
:param iso_sigma: Independent Iso+LineDD noise for genetic heads.
:param line_sigma: Shared direction noise for genetic heads.
:param max_episode_steps: Hard maximum steps per episode.
:param seed: Separate seed streams for initialization and rollouts.
:param device: CPU or CUDA Torch device.
Definition at line 141 of file ccqd.py.