malkhut(e2e): CMA-ES disabled for pure 100-opponent episode loop

This commit is contained in:
Codex
2026-07-15 00:48:48 +02:00
parent bbaceffb61
commit a310c92977

View File

@@ -385,24 +385,7 @@ def main():
import traceback import traceback
traceback.print_exc() traceback.print_exc()
# Phase 2: CMA-ES every 20 cycles (memory-heavy — keep very infrequent) # CMA-ES disabled for pure episode loop — 100-opponent swarm is the focus
if cycle % 20 == 0 and remaining > 900 and recent_episodes >= 20:
phase = f"CYCLE {cycle} — CMA-ES"
cma_scenarios = rng.sample(all_scenarios, min(3, len(all_scenarios)))
try:
best = run_cma_cycle(
cwm_factory, cma_scenarios, params, codec, pool,
n_evals=2,
seed=SEED + cycle * 100,
)
cma_bests.append(best)
if best.score > params.w_expected_pnl * 10:
params = best.params
del best
import gc; gc.collect()
except Exception as e:
print(f" CMA-ES error (cycle {cycle}): {e}", flush=True)
import gc; gc.collect()
# Periodic report from rolling stats # Periodic report from rolling stats
elapsed = time.time() - t_start elapsed = time.time() - t_start