=== Truth Table 1: Targets = [0, 0, 0, 0] ===
Final Weights: [ 0.41887061 -0.34704004]
Final Bias: -0.4372477229428532
Epochs to Learn: 4
Final Test Output: [0, 0, 0, 0]
=== Truth Table 2: Targets = [0, 0, 0, 1] ===
Final Weights: [0.2766353 0.76365759]
Final Bias: -0.9620232619558886
Epochs to Learn: 6
Final Test Output: [0, 0, 0, 1]
=== Truth Table 3: Targets = [0, 0, 1, 0] ===
Final Weights: [ 0.07916369 -0.58534058]
Final Bias: -0.03036235397057227
Epochs to Learn: 6
Final Test Output: [0, 0, 1, 0]
=== Truth Table 4: Targets = [0, 0, 1, 1] ===
Final Weights: [ 0.39361101 -0.2748075 ]
Final Bias: -0.01443476882199543
Epochs to Learn: 10
Final Test Output: [0, 0, 1, 1]
=== Truth Table 5: Targets = [0, 1, 0, 0] ===
Final Weights: [-0.1006732 0.53012766]
Final Bias: -0.4530586827476426
Epochs to Learn: 7
Final Test Output: [0, 1, 0, 0]
=== Truth Table 6: Targets = [0, 1, 0, 1] ===
Final Weights: [0.05595831 0.17259464]
Final Bias: -0.09267415163055348
Epochs to Learn: 4
Final Test Output: [0, 1, 0, 1]
=== Truth Table 7: Targets = [0, 1, 1, 0] ===
Failed to learn after 100 epochs. Restarting with new weights and bias...
Failed to learn after 100 epochs. Restarting with new weights and bias...
Failed to learn after 100 epochs. Restarting with new weights and bias...
Failed to learn after 100 epochs. Restarting with new weights and bias...
Failed to learn after 100 epochs. Restarting with new weights and bias...
Failed to learn after 100 epochs. Restarting with new weights and bias...
Failed to learn after 100 epochs. Restarting with new weights and bias...
Failed to learn after 100 epochs. Restarting with new weights and bias...
Failed to learn after 100 epochs. Restarting with new weights and bias...
Failed to learn after 100 epochs. Restarting with new weights and bias...
Perceptron failed to learn this truth table.
Learning failed for this truth table.
=== Truth Table 8: Targets = [0, 1, 1, 1] ===
Final Weights: [0.08362556 0.02328936]
Final Bias: -0.0005643355625956359
Epochs to Learn: 8
Final Test Output: [0, 1, 1, 1]
=== Truth Table 9: Targets = [1, 0, 0, 0] ===
Final Weights: [-0.0492409 -0.10376759]
Final Bias: 0.031147041978318496
Epochs to Learn: 18
Final Test Output: [1, 0, 0, 0]
=== Truth Table 10: Targets = [1, 0, 0, 1] ===
Failed to learn after 100 epochs. Restarting with new weights and bias...
Failed to learn after 100 epochs. Restarting with new weights and bias...
Failed to learn after 100 epochs. Restarting with new weights and bias...
Failed to learn after 100 epochs. Restarting with new weights and bias...
Failed to learn after 100 epochs. Restarting with new weights and bias...
Failed to learn after 100 epochs. Restarting with new weights and bias...
Failed to learn after 100 epochs. Restarting with new weights and bias...
Failed to learn after 100 epochs. Restarting with new weights and bias...
Failed to learn after 100 epochs. Restarting with new weights and bias...
Failed to learn after 100 epochs. Restarting with new weights and bias...
Perceptron failed to learn this truth table.
Learning failed for this truth table.
=== Truth Table 11: Targets = [1, 0, 1, 0] ===
Final Weights: [ 0.00483802 -0.82107872]
Final Bias: 0.05148154639064506
Epochs to Learn: 4
Final Test Output: [1, 0, 1, 0]
=== Truth Table 12: Targets = [1, 0, 1, 1] ===
Final Weights: [ 0.07869752 -0.99464246]
Final Bias: 0.9866698669056061
Epochs to Learn: 10
Final Test Output: [1, 0, 1, 1]
=== Truth Table 13: Targets = [1, 1, 0, 0] ===
Final Weights: [-0.20561694 0.04820611]
Final Bias: 0.045978870026403856
Epochs to Learn: 6
Final Test Output: [1, 1, 0, 0]
=== Truth Table 14: Targets = [1, 1, 0, 1] ===
Final Weights: [-0.32141478 0.82720322]
Final Bias: 0.04775344049392691
Epochs to Learn: 7
Final Test Output: [1, 1, 0, 1]
=== Truth Table 15: Targets = [1, 1, 1, 0] ===
Final Weights: [-0.20656687 -0.23461108]
Final Bias: 0.36266363324118867
Epochs to Learn: 12
Final Test Output: [1, 1, 1, 0]
=== Truth Table 16: Targets = [1, 1, 1, 1] ===
Final Weights: [-0.37899237 -0.18786259]
Final Bias: 0.6481963306246683
Epochs to Learn: 4
Final Test Output: [1, 1, 1, 1]