[][src]Trait neat_gru::game::Game

pub trait Game {
    pub fn run_generation(&mut self) -> Vec<f64>;
pub fn reset_players(&mut self, nets: &[NeuralNetwork]);
pub fn post_training(&mut self, history: &[Topology]); }

Trait to implement in order to use Train

Required methods

pub fn run_generation(&mut self) -> Vec<f64>[src]

Run a game round

pub fn reset_players(&mut self, nets: &[NeuralNetwork])[src]

Resets the neural networks

Arguments

nets - A vector containing the last generation of neural networks

pub fn post_training(&mut self, history: &[Topology])[src]

Function to be run at the end of the training

Arguments

net - The best historical network

Loading content...

Implementors

Loading content...