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

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