keras-logic-gates In this repository you get the idea how you can train ann of logical gate (and, or) using keras by slightly modifying layers and other data you can modify it for xor, xnor good luck modify it by yourself