The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

AI::FANN::Evolving::Gene - gene that codes for an artificial neural network (ANN)

METHODS

new

Constructor is passed named arguments. Instantiates a trained AI::FANN::Evolving ANN

ann

Getter/setter for an AI::FANN::Evolving ANN

make_function

Returns a code reference to the fitness function, which when executed returns a fitness value and writes the corresponding ANN to file

fitness

Stores the fitness value after expressing the fitness function

clone

Clones the object

mutate

Mutates the ANN by stochastically altering its properties in proportion to the mutation_rate