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

Cantor’s pairing function. Given positive integers (a, b), a unique number is returned such that no other integers can produce the same number

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.

genCantorId(a, b)

Cantor’s pairing function. Given positive integers (a, b), a unique number is returned such that no other integers can produce the same number.

map(species, fun)
normal()
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)