pub trait Game<T>where
    T: Float + AddAssign + Display + Send,
{ fn run_generation(&mut self) -> Vec<T>; fn reset_players(&mut self, nets: Vec<NeuralNetwork<T>>); fn post_training(&mut self, history: Vec<HistoricTopologyLazy<T>>); }
Expand description

Trait to implement in order to use Train

Required Methods

Run a game round

Resets the neural networks

Arguments

nets - A vector containing the last generation of neural networks

Function to be run at the end of the training

Arguments

net - The best historical network

Implementors