fork download
  1. import numpy as np
  2.  
  3. # Perceptron training for XOR
  4. inputs = np.array([[0, 0], [0, 1], [1, 0], [1, 1]])
  5. outputs_xor = np.array([0, 1, 1, 0]) # XOR truth table
  6. weights = np.random.uniform(-1, 1, size=inputs.shape[1]) # Random initialization
  7. bias = np.random.uniform(-1, 1)
  8. learning_rate = 0.1
  9. max_epochs = 100
  10. success = False
  11.  
  12. for epoch in range(max_epochs):
  13. error_count = 0
  14. print(f"\nEpoch {epoch + 1}:")
  15. for i, input_vec in enumerate(inputs):
  16. linear_output = np.dot(input_vec, weights) + bias
  17. predicted = 1 if linear_output >= 0 else 0
  18. error = outputs_xor[i] - predicted
  19. if error != 0:
  20. weights += learning_rate * error * input_vec
  21. bias += learning_rate * error
  22. error_count += 1
  23. print(f"Input: {input_vec}, Target: {outputs_xor[i]}, Predicted: {predicted}, Weights: {weights}, Bias: {bias}")
  24.  
  25. if error_count == 0:
  26. success = True
  27. break
  28.  
  29. if success:
  30. print("\nXOR learned successfully!")
  31. else:
  32. print("\nFailed to learn XOR within max epochs.")
  33.  
Success #stdin #stdout 0.2s 28992KB
stdin
Standard input is empty
stdout
Epoch 1:
Input: [0 0], Target: 0, Predicted: 0, Weights: [-0.3056911  0.4745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 1, Weights: [-0.3056911  0.4745288], Bias: -0.0852287463635788
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.2056911  0.4745288], Bias: 0.014771253636421205
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.3056911  0.3745288], Bias: -0.0852287463635788

Epoch 2:
Input: [0 0], Target: 0, Predicted: 0, Weights: [-0.3056911  0.3745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 1, Weights: [-0.3056911  0.3745288], Bias: -0.0852287463635788
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.2056911  0.3745288], Bias: 0.014771253636421205
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.3056911  0.2745288], Bias: -0.0852287463635788

Epoch 3:
Input: [0 0], Target: 0, Predicted: 0, Weights: [-0.3056911  0.2745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 1, Weights: [-0.3056911  0.2745288], Bias: -0.0852287463635788
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.2056911  0.2745288], Bias: 0.014771253636421205
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.3056911  0.1745288], Bias: -0.0852287463635788

Epoch 4:
Input: [0 0], Target: 0, Predicted: 0, Weights: [-0.3056911  0.1745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 1, Weights: [-0.3056911  0.1745288], Bias: -0.0852287463635788
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 1], Target: 0, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205

Epoch 5:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.1745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 1, Weights: [-0.2056911  0.1745288], Bias: -0.0852287463635788
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.014771253636421205
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788

Epoch 6:
Input: [0 0], Target: 0, Predicted: 0, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 7:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 8:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 9:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 10:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 11:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 12:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 13:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 14:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 15:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 16:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 17:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 18:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 19:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 20:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 21:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 22:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 23:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 24:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 25:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 26:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 27:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 28:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 29:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 30:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 31:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 32:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 33:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 34:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 35:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 36:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 37:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 38:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 39:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 40:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 41:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 42:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 43:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 44:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 45:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 46:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 47:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 48:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 49:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 50:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 51:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 52:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 53:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 54:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 55:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 56:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 57:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 58:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 59:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 60:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 61:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 62:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 63:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 64:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 65:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 66:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 67:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 68:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 69:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 70:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 71:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 72:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 73:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 74:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 75:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 76:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 77:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 78:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 79:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 80:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 81:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 82:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 83:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 84:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 85:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 86:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 87:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 88:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 89:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 90:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 91:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 92:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 93:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 94:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 95:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 96:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 97:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 98:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 99:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Epoch 100:
Input: [0 0], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: -0.0852287463635788
Input: [0 1], Target: 1, Predicted: 0, Weights: [-0.2056911  0.1745288], Bias: 0.014771253636421205
Input: [1 0], Target: 1, Predicted: 0, Weights: [-0.1056911  0.1745288], Bias: 0.11477125363642121
Input: [1 1], Target: 0, Predicted: 1, Weights: [-0.2056911  0.0745288], Bias: 0.014771253636421205

Failed to learn XOR within max epochs.