X = np.array([[0, 0], [0, 1], [1, 0], [1, 1]])
W1, b1 = np.array([[1, 1], [1, 1]]), np.array([0, -1])
w2, b2 = np.array([1, -2]), 0
H = np.maximum(X @ W1 + b1, 0) # hidden layer with ReLU
o = H @ w2 + b2 # output layer
for x, h, out in zip(X, H, o):
print(f'x = {x}, h = {h}, o = {out}')