Neat-Ex v1.3.0 Neat.Utils

Summary

Functions

Given the species list and a mapping function, each species is passed into the function in a new process, then the results are collected when all processes complete

Given either an ann, an {ann, fitness} tuple, or an {ann, fitness, tsi} tuple, ann is returned

Uses SipHash to generate a (usually) unique 64 bit id given the provided term. The same term will always produce the same id

Converts a species to a json, where each ANN’s json is in the list under property “species” (in arbitrary order)

Functions

async_map(species, fun)
async_species_map(species, fun)

Given the species list and a mapping function, each species is passed into the function in a new process, then the results are collected when all processes complete.

deconstruct(ann)

Given either an ann, an {ann, fitness} tuple, or an {ann, fitness, tsi} tuple, ann is returned.

gen_id(term)

Uses SipHash to generate a (usually) unique 64 bit id given the provided term. The same term will always produce the same id.

map(species, fun)
reduce(species, acc, fun)
toJson(species)

Converts a species to a json, where each ANN’s json is in the list under property “species” (in arbitrary order)