The following program is a basic forward feeding multiplayer perceptron. A perceptron is divided up into an input layer, hidden layers and output layer. The neural network can either feedforward, which allows it to return an output with the given inputs, which is approximated with its current weights and biases or back propogate which takes an input, expected output and improves its approximator function.
The neural network only supports a sigmoid activation function and a meaned square error function. This program was made without the help of any external libraries.
To build the program, run the following commands
Windows
mkdir out
javac -d out src/**/*.javaBash
mkdir out
find src -name "*.java" -exec javac -d out {} +Once executed you can either run the ColorPicker example or the XOR example
# Color Example
java -cp out me.jacob.assign.ColorSelector
# XOR Example
java -cp out me.jacob.assign.XORProblem