IAtari
Genetic algorithm generating AI capable to play Atari2600 games.
genetic_algorithms Namespace Reference

Handle score computing and flow control of the algorithm. More...

Namespaces

 accumulate
 Handle computation of score.
 

Classes

class  distributed_fitness
 Handle flow control of the algorithm. More...
 

Functions

template<typename Res , typename Params >
std::shared_ptr< distributed_fitness< Res, Params > > make_distributed_fitness (int port, std::function< Res(const std::list< Res > &)> accumulate, int nb_eval_by_parameter=1, int nb_eval_by_slave=1)
 Creates a fitness tool and launches a master in a separate thread. More...
 

Detailed Description

Handle score computing and flow control of the algorithm.

Function Documentation

◆ make_distributed_fitness()

template<typename Res , typename Params >
std::shared_ptr<distributed_fitness<Res, Params> > genetic_algorithms::make_distributed_fitness ( int  port,
std::function< Res(const std::list< Res > &)>  accumulate,
int  nb_eval_by_parameter = 1,
int  nb_eval_by_slave = 1 
)

Creates a fitness tool and launches a master in a separate thread.

Parameters
portPort used to communicate over the network
accumulateFunction used to compute score
nb_eval_by_parameterNumber of test performed on an agent
nb_eval_by_slaveNumber max of test performed by a slave on an agent
Returns
The fitness tool