import numpy as np import matplotlib.pyplot as plt # Create simple dataset - XOR problem X = np.array([[0, 0], [0, 1], [1, 0], [1, 1]]) y = np.array([[0], [1], [1], [0]]) print(f"Input shape: {X.shape}") # (4, 2) print(f"Output shape: {y.shape}") # (4, 1) print(f"Dataset:") for i in range(len(X)): print(f" {X[i]} -> {y[i][0]}") # Print each input pair and its expected output