Skip to main content
Thanks for the feedback!
Explore interactive demos

Keras XOR Network

Train a small network to learn the XOR pattern.

Keras XOR training
Train a Keras neural network to classify samples into the right class.
Input
x1 x2
Predicted
class A
Each chromosome encodes the network's weights; fitness = classification accuracy.
Run this yourself, for free

Sign in to configure and launch a genetic algorithm against this problem, or bring your own.

Get started