Trait neat_gru::game::Game [−][src]
pub trait Game<T> where
T: Float + AddAssign + Display, { fn run_generation(&mut self) -> Vec<T>; fn reset_players(&mut self, nets: Vec<NeuralNetwork<T>>); fn post_training(&mut self, history: &[Topology<T>]); }
Expand description
Trait to implement in order to use Train
Required methods
fn run_generation(&mut self) -> Vec<T>
fn run_generation(&mut self) -> Vec<T>
Run a game round
fn reset_players(&mut self, nets: Vec<NeuralNetwork<T>>)
fn reset_players(&mut self, nets: Vec<NeuralNetwork<T>>)
Resets the neural networks
Arguments
nets
- A vector containing the last generation of neural networks