Explore XOR 'Hello World' examples
masterThe XOR examples in the examples/xor/ directory serve as 'Hello World' style samples for neat-python. They demonstrate the minimal amount of code required to evolve networks that implement the 2-input XOR function. These examples are useful for learning the library's API or as a debugging tool to step through NEAT-specific logic without the complexity of larger applications.
Available example types:
- Minimal Feed-forward:
evolve-minimal.pyshows the absolute bare minimum for evolving a feed-forward network with sigmoidal neurons. - Standard Feed-forward:
evolve-feedforward.pyimplements the same logic as the minimal version but uses better coding practices and provides prettier output. - Parallel Feed-forward:
evolve-feedforward-parallel.pydemonstrates how to utilize multiple processors to evaluate networks in parallel. - Spiking Neurons:
evolve-spiking.pydemonstrates evolving a network of spiking neurons using Izhikevich's neuron model.