EvoAI is a C++17 library of building blocks to evolve, train and cluster small models, neural networks that are evolved (NEAT, HyperNEAT) and / or trained (backpropagation), self-organizing maps, and the algorithms around them.
Features#
A
Genometo use NEAT and HyperNEAT algorithms to evolveNeural Networks.A Population(with speciation) to evolve your own
Genomes, it only needs to fulfillmeta::is_populable_v<MyClass>Common
Selection Algorithms.Train neural networks using backpropagation, enabling them to learn from labeled datasets, with the optimizers
SGD,AdamandMuon, learning rate schedulers and loss functions.A
SelfOrganizingMap(Kohonen) to cluster feature vectors with any distance metric: best matching units with their distance, evaluation (quantization and topographic error, how many samples each node won), a U-matrix, training that can be resumed and stopped, and JSON saving and loading.Evaluators to measure a network (neurons, connections, parameters, memory, sparsity, latency) and to combine the measures into an objective.
A generic
GraphandLatticeGraphwith pathfinding algorithms and maze generation.