The PUCT formula in MCTS._simulate is implemented in a Python loop.
Problem:
- Python loops are slow for performance-critical code
- Selection bottlenecks MCTS speed
Impact:
- Slower search simulations
- Limits self-play throughput
Recommendation:
- Store node statistics (Q, N, P) in NumPy arrays
- Perform PUCT calculation for all child nodes in a single vectorized operation
The PUCT formula in MCTS._simulate is implemented in a Python loop.
Problem:
Impact:
Recommendation: