Choose a Mode
Pick the right entry point for your workflow.
| If you want to… | Use | Guide |
|---|---|---|
| Train a regular Keras model | NEAT in model.compile(...) | Keras |
| See whether the correction is doing anything | diagnostic_snapshot() / NEATDiagnosticsCallback | Diagnostics |
| Debug or experiment with the update rule | neat_step(...) (NumPy, deterministic) | API |
| Give each example or task its own gradient | player_train_step(...) | Player-aware |
| Train PyTorch models directly, without Keras | TorchNEAT | API |
Keras optimizer
Use NEAT as a drop-in optimizer for regular Keras training on TensorFlow, JAX or PyTorch.
Diagnostics
Use diagnostic_snapshot() or NEATDiagnosticsCallback to measure conflict, correction size, alignment and how often the correction fires.
Reference engine
Use neat_step(...) for deterministic debugging, algorithm experiments, and framework-independent validation.
Player-aware loop
Use player_train_step(...) when each example or task should contribute its own gradient (TensorFlow backend).
PyTorch adapter
Use TorchNEAT in plain PyTorch training loops. It powers the PyTorch benchmark suite.