dW = np.dot(perceptron_inputs[i].T, dZ) / m