public class Testing { public static void main(String[] args) { testEngineeredPerceptron(); // testPerceptron(); } public static void testEngineeredPerceptron() { double[][] inputs = { {0,0}, {0,1}, {1,0}, {1,1}}; double[] desiredOutputs = {0, 0, 0, 1}; EngineeredPerceptron p = new EngineeredPerceptron(); p.initNetwork(inputs, desiredOutputs); p.testNetwork(); } public static void testPerceptron() { double[][] inputs = { {0,0}, {0,1}, {1,0}, {1,1}}; double[] desiredOutputs = {0, 0, 0, 1}; Perceptron p = new Perceptron(); p.initNetwork(inputs, desiredOutputs); p.trainPerceptronSigmoid(1); p.testNetwork(); p.printWeights(); } } }