from utils.sigmoid import sigmoid import numpy as np def forward_pass(w1, b1, w2, b2, data): # compute the forward pass of the MLP with sigmoid activations z1 = np.matmul(data, w1) + b1 a1 = sigmoid(z1) z2 = np.matmul(a1, w2) + b2 a2 = sigmoid(z2) return a1, a2