feat: 训练效率优化 — B:全bot记录 + A:并行调度

B: NeuralBot也调用TrainingCollector.Record
  → 3个bot全部记录(之前只有ISMCTS)
  → 9样本/局(之前6, +50%)

A: parallel_train.py 并行调度器
  python3 scripts/parallel_train.py --workers 3 --games 333
  → 串行3个worker各跑333局 → 合并数据到training_data/

  效率: 1000局 ≈ 12分钟, 9000样本
  之前: 1000局 ≈ 12分钟, 6000样本
This commit is contained in:
2026-07-13 03:25:51 +08:00
parent b619b84f2a
commit 2b108c4d41
1005 changed files with 47 additions and 10344 deletions

View File

@ -130,6 +130,8 @@ namespace PdkFriendServer.Logic
Console.WriteLine($"[NeuralBot pos{view.MyPos}] {candidates.Count}c → "
+ $"{(isPass ? "pass" : $"{chosen.play.Ids?.Length ?? 1}c r{chosen.play.GameNum}")} V={bestV:F3}"
+ (debugVals.Length > 0 ? $" [{debugVals}]" : ""));
TrainingCollector.Record(view, _tracker,
isPass ? 13 : TrainingCollector.RankToIdx(chosen.play.GameNum), view.MyPos - 1);
return chosen.play;
}