Skip to content

Evolve

Name Mandatory Description Default Type
⬅️ Input The input of this shard is ignored. Any
Output ➡️ This shard outputs a [Type::Float Type::Wire] pair. This pair represents the wire configuration from the current generation that scored the best fitness score and the fitness score itself. [Float Wire]
Wire No The wire to optimize and evolve. none Wire
Fitness No The fitness wire to run at the end of the main wire evaluation and using its last output; should output a Float fitness value. none Wire
Population No The population size. 64 Int
Mutation No The rate of mutation, 0.1 = 10%. 0.2 Float
Crossover No The rate of crossover, 0.1 = 10%. 0.2 Float
Extinction No The rate of extinction, 0.1 = 10%. 0.1 Float
Elitism No The rate of elitism, 0.1 = 10%. 0.1 Float
Threads No The number of cpu threads to use. 2 Int
Coroutines No The number of coroutines to run on each thread. 8 Int

This shard uses genetic algorithm to evolve and change the configuration of the wire specified in the Wire parameter. The evolved wires are given a score based on the fitness wire specified in the Fitness Wire parameter. The shard then outputs the best wire and its fitness score. This shard should be used in conjunction with the Mutant shard.