Training for Truth Table 1: (0, 0, 0, 0)
The network learned the truth table correctly after 1 iterations.
Testing the trained network:
Input: [0 0], Target: 0, Output: 0
Input: [0 1], Target: 0, Output: 0
Input: [1 0], Target: 0, Output: 0
Input: [1 1], Target: 0, Output: 0
-----------------------------------------------------------
Training for Truth Table 2: (0, 0, 0, 1)
The network learned the truth table correctly after 25 iterations.
Testing the trained network:
Input: [0 0], Target: 0, Output: 0
Input: [0 1], Target: 0, Output: 0
Input: [1 0], Target: 0, Output: 0
Input: [1 1], Target: 1, Output: 1
-----------------------------------------------------------
Training for Truth Table 3: (0, 0, 1, 0)
The network learned the truth table correctly after 52 iterations.
Testing the trained network:
Input: [0 0], Target: 0, Output: 0
Input: [0 1], Target: 0, Output: 0
Input: [1 0], Target: 1, Output: 1
Input: [1 1], Target: 0, Output: 0
-----------------------------------------------------------
Training for Truth Table 4: (0, 0, 1, 1)
The network learned the truth table correctly after 3 iterations.
Testing the trained network:
Input: [0 0], Target: 0, Output: 0
Input: [0 1], Target: 0, Output: 0
Input: [1 0], Target: 1, Output: 1
Input: [1 1], Target: 1, Output: 1
-----------------------------------------------------------
Training for Truth Table 5: (0, 1, 0, 0)
The network learned the truth table correctly after 20 iterations.
Testing the trained network:
Input: [0 0], Target: 0, Output: 0
Input: [0 1], Target: 1, Output: 1
Input: [1 0], Target: 0, Output: 0
Input: [1 1], Target: 0, Output: 0
-----------------------------------------------------------
Training for Truth Table 6: (0, 1, 0, 1)
The network learned the truth table correctly after 32 iterations.
Testing the trained network:
Input: [0 0], Target: 0, Output: 0
Input: [0 1], Target: 1, Output: 1
Input: [1 0], Target: 0, Output: 0
Input: [1 1], Target: 1, Output: 1
-----------------------------------------------------------
Training for Truth Table 7: (0, 1, 1, 0)
The network learned the truth table correctly after 769 iterations.
Testing the trained network:
Input: [0 0], Target: 0, Output: 0
Input: [0 1], Target: 1, Output: 1
Input: [1 0], Target: 1, Output: 1
Input: [1 1], Target: 0, Output: 0
-----------------------------------------------------------
Training for Truth Table 8: (0, 1, 1, 1)
The network learned the truth table correctly after 38 iterations.
Testing the trained network:
Input: [0 0], Target: 0, Output: 0
Input: [0 1], Target: 1, Output: 1
Input: [1 0], Target: 1, Output: 1
Input: [1 1], Target: 1, Output: 1
-----------------------------------------------------------
Training for Truth Table 9: (1, 0, 0, 0)
The network learned the truth table correctly after 28 iterations.
Testing the trained network:
Input: [0 0], Target: 1, Output: 1
Input: [0 1], Target: 0, Output: 0
Input: [1 0], Target: 0, Output: 0
Input: [1 1], Target: 0, Output: 0
-----------------------------------------------------------
Training for Truth Table 10: (1, 0, 0, 1)
The network learned the truth table correctly after 843 iterations.
Testing the trained network:
Input: [0 0], Target: 1, Output: 1
Input: [0 1], Target: 0, Output: 0
Input: [1 0], Target: 0, Output: 0
Input: [1 1], Target: 1, Output: 1
-----------------------------------------------------------
Training for Truth Table 11: (1, 0, 1, 0)
The network learned the truth table correctly after 4 iterations.
Testing the trained network:
Input: [0 0], Target: 1, Output: 1
Input: [0 1], Target: 0, Output: 0
Input: [1 0], Target: 1, Output: 1
Input: [1 1], Target: 0, Output: 0
-----------------------------------------------------------
Training for Truth Table 12: (1, 0, 1, 1)
The network learned the truth table correctly after 17 iterations.
Testing the trained network:
Input: [0 0], Target: 1, Output: 1
Input: [0 1], Target: 0, Output: 0
Input: [1 0], Target: 1, Output: 1
Input: [1 1], Target: 1, Output: 1
-----------------------------------------------------------
Training for Truth Table 13: (1, 1, 0, 0)
The network learned the truth table correctly after 26 iterations.
Testing the trained network:
Input: [0 0], Target: 1, Output: 1
Input: [0 1], Target: 1, Output: 1
Input: [1 0], Target: 0, Output: 0
Input: [1 1], Target: 0, Output: 0
-----------------------------------------------------------
Training for Truth Table 14: (1, 1, 0, 1)
The network learned the truth table correctly after 20 iterations.
Testing the trained network:
Input: [0 0], Target: 1, Output: 1
Input: [0 1], Target: 1, Output: 1
Input: [1 0], Target: 0, Output: 0
Input: [1 1], Target: 1, Output: 1
-----------------------------------------------------------
Training for Truth Table 15: (1, 1, 1, 0)
The network learned the truth table correctly after 12 iterations.
Testing the trained network:
Input: [0 0], Target: 1, Output: 1
Input: [0 1], Target: 1, Output: 1
Input: [1 0], Target: 1, Output: 1
Input: [1 1], Target: 0, Output: 0
-----------------------------------------------------------
Training for Truth Table 16: (1, 1, 1, 1)
The network learned the truth table correctly after 2 iterations.
Testing the trained network:
Input: [0 0], Target: 1, Output: 1
Input: [0 1], Target: 1, Output: 1
Input: [1 0], Target: 1, Output: 1
Input: [1 1], Target: 1, Output: 1
-----------------------------------------------------------