Commit Graph
58 Commits
Author SHA1 Message Date
coolguyandClaude Opus 4.7 a1215959a7 Warn when max_iterations is too small for any eval to run
If eval_every is positive but max_iterations falls before the next scheduled
eval iteration (including resume cases where current_iteration is already
past the last eval boundary), log a one-time warning at run start so the
user notices the misconfiguration. We deliberately do not force an
end-of-run eval, which would distort time budgets and reproducibility.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-07 17:03:28 +09:00
coolguyandClaude Opus 4.7 acb664c873 Auto-derive run dir from experiment_name + timestamp
Drop checkpoint.directory from config — config defines what an experiment
is, not where its outputs go. The CLI now computes the run directory from
run.experiment_name plus a timestamp, defaulting to runs/tmp/ for
throwaway runs and runs/ when --keep is passed.

- Remove CheckpointConfig.directory and DeepCFRConfig.checkpoint_path
- DeepCFRTrainer takes run_dir: Path explicitly
- CLI: add --keep boolean; --resume requires an explicit path (no shortcut)
- Auto path: runs/[tmp/]<YYYY-MM-DD_HHMMSS>_<experiment_name-kebab>/
- Rename 13 configs to kebab-case; strip directory: lines; kebab their
  experiment_name values
- Rewrite AGENTS.md training/run sections; document
  archive/tmp/<flat> layout, --keep, kebab-case scope
- Update tests for new run_dir flow and dropped --resume shortcut

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-07 16:32:44 +09:00
coolguyandClaude Opus 4.7 a177031963 Clean up Deep CFR config schema
Remove legacy aliases, rename max_hours to max_minutes, collapse the
four checkpoint save flags into save_every + save_latest, and change
defaults to safer values (opponent_policy=self_play_league,
device=auto, eval_every=50, max_depth=null). Migrate all archived
yaml configs and tests to the new schema.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-07 16:09:19 +09:00
coolguy 0fea13786f Use generic train config overrides 2026-05-07 15:53:43 +09:00
coolguyandClaude Opus 4.7 44dd97876e Add optional wandb metrics tracking
Mirror Deep CFR training metrics to W&B via a new WandbRunTracker
wired through CompositeRunTracker; wandb is an optional extra so
default installs and runs stay unchanged. Train CLI gains
--wandb/--wandb-project/--wandb-mode/--wandb-name/--wandb-tag, and
train() now closes the tracker in a finally block so runs finalize
even on early exit.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-07 15:42:30 +09:00
coolguy 4c223f76ff Add generic Deep CFR config overrides 2026-05-07 15:26:39 +09:00
coolguy 43507375fc Add external sampling traversal mode 2026-05-07 15:23:40 +09:00
coolguyandClaude Haiku 4.5 cee8849e04 Add backward-compatible color_shared network architecture
- Add network.kind field to config (mlp/color_shared)
- Implement ColorSharedNetwork that:
  - Splits input into 5 equal color blocks
  - Encodes each block with shared weights
  - Pools with mean/max aggregation
  - Concatenates pooled embeddings with remainder
  - Outputs same action logits as MLP
- Add ColorAttention for optional self-attention over color embeddings
- Add network.color_attention_layers and color_attention_heads config
- Maintain full backward compatibility (default kind=mlp)
- Add 28 comprehensive tests covering all architectures

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-05-07 09:18:13 +09:00
coolguy 4712a9af89 Deep CFR LCFR DCFR loss weighting 추가 2026-05-07 06:30:48 +09:00
coolguy 080bff517e Deep CFR regret fallback audit metrics 추가 2026-05-07 05:23:23 +09:00
coolguy 148be6e9a0 Deep CFR evaluation 배칭 및 병렬화 추가 2026-05-07 03:42:00 +09:00
coolguy b5b4f97d41 Deep CFR slot-aware encoding NaN 수정 2026-05-07 02:32:24 +09:00
coolguy ece82fc310 Deep CFR traversal을 Cython 엔진으로 교체 2026-05-07 02:25:33 +09:00
coolguy 44a96f5b4c Deep CFR checkpoint CLI override 추가 2026-05-07 01:59:16 +09:00
coolguy fc4f0ddfd8 Deep CFR resume 동작 보강 2026-05-07 01:55:10 +09:00
coolguy 1420ab76bd Deep CFR run tracking 추상화 2026-05-07 01:44:15 +09:00
coolguy 1b6d98ceeb Deep CFR traversal 운영 로그 보강 2026-05-07 01:23:26 +09:00
coolguy d29b3d60bb Deep CFR 재현 config 이름 정리 2026-05-07 01:15:34 +09:00
coolguy df8f979ce4 Deep CFR 재현 config 실행 보강 2026-05-07 01:12:09 +09:00
coolguy bbf8950c3a Deep CFR 재현 config run dir 정리 2026-05-07 01:05:23 +09:00
coolguy 312cbd3949 Deep CFR evaluation 진단 metric 추가 2026-05-07 01:03:09 +09:00
coolguy 7ef7e5b927 Deep CFR endpoint depth metrics 보강 2026-05-07 00:54:16 +09:00
coolguy 95d0660b0b Deep CFR playability encoding 추가 2026-05-07 00:52:28 +09:00
coolguy 9bcc88c1be Deep CFR legacy 재현 config 기반 추가 2026-05-07 00:46:09 +09:00
coolguy f593a6d910 Deep CFR YAML config 추가 2026-05-07 00:30:42 +09:00
coolguy b71f4b95be Deep CFR policy gradient fine-tuning 추가 2026-05-07 00:13:53 +09:00
coolguy 647baa7d6d Deep CFR imitation pretraining 추가 2026-05-07 00:12:41 +09:00
coolguy 8f54415832 Deep CFR multiprocessing benchmark 보강 2026-05-07 00:11:01 +09:00
coolguy 5555e781af Deep CFR weighted self-play league 추가 2026-05-07 00:09:36 +09:00
coolguy 46d841cf11 Deep CFR self-play league 추가 2026-05-07 00:01:19 +09:00
coolguy a5bd5eeb7e Deep CFR traversal multiprocessing과 benchmark 추가 2026-05-06 23:59:01 +09:00
coolguy 76833109dc Deep CFR 로컬 metrics logging 추가 2026-05-06 23:54:52 +09:00
coolguy fc5b3d9bc8 Deep CFR checkpoint eval CLI 추가 2026-05-06 23:52:50 +09:00
coolguy 65e7abefad Deep CFR 정보 상태 encoding 확장 2026-05-06 23:48:12 +09:00
coolguy 66d02f773e Deep CFR reservoir memory 추가 2026-05-06 23:45:50 +09:00
coolguy 6f4ef89ea2 Deep CFR outcome sampling과 rollout cutoff 추가 2026-05-06 23:42:29 +09:00
coolguy e802efabc3 Deep CFR 재귀 traversal 구현 2026-05-06 23:35:46 +09:00
coolguy b5d82f99a1 Deep CFR v0 스모크 파이프라인 추가 2026-05-06 23:15:06 +09:00
coolguy 6c35b878a5 Deep CFR 기초 모듈 추가 2026-05-06 23:06:23 +09:00
coolguy 91b8846894 정책 인터페이스로 네이밍 정리 2026-05-06 22:52:04 +09:00
coolguy 8763430475 게임 엔진을 game 모듈로 통합 2026-05-06 22:42:09 +09:00
coolguy c1c50267b5 FastGameState를 기본 게임 상태로 전환 2026-05-06 22:35:51 +09:00
coolguy 7e8c29478f 고속 엔진 패리티 테스트 강화 2026-05-06 22:13:23 +09:00
coolguy 2629fbdd99 고속 엔진 undo stack 추가 2026-05-06 22:02:04 +09:00
coolguy a349cf34ed 고속 엔진 안전성 보강 2026-05-06 21:56:59 +09:00
coolguy 2450fd3737 고속 엔진 hot path 최적화 2026-05-06 21:45:17 +09:00
coolguy ec0e468fa1 고속 게임 엔진 골격 추가 2026-05-06 21:40:33 +09:00
coolguy 771c0ec821 평가 스키마와 게임 undo 기반 정리 2026-05-06 21:28:15 +09:00
coolguy 1843d93df2 봇 실행 헬퍼를 평가 모듈로 통합 2026-05-06 20:45:14 +09:00
coolguy 407d592f5e 미구현 레퍼런스 자리 제거 2026-05-06 20:42:26 +09:00