DescriptionThis is an artificial neural network that you can specify a truth table for a 2-bit function with a 1-bit output and the the neural network will use back propagation to learn the function.
It has one hidden layer containing three nodes. There are three input nodes (1 for each bit plus 1 for the bias), and there's a single output node. It uses the sigmoid activation function.
It can learn every function, including XOR which is non-linear.
I might update this in the future with something more complicated. Currently it just serves as an example of how you could go about making an ANN in SmileBASIC.InstructionsRun the program ".RUNME".
When it asks for the outputs for the truth table, specify a 1 or a 0 and press A in between each.
When it asks you to test it, give it two values each being a 0 or a 1 and again press A between each of them.