diff --git a/mlp.py b/mlp.py index 87734d9b7c3933efc23cafebf35231ac3e410d06..5042a8c39f3d24fdea80e8821dafd0494c3ed6e9 100644 --- a/mlp.py +++ b/mlp.py @@ -23,7 +23,7 @@ def learn_once_mse(w1, b1, w2, b2, data, targets, learning_rate): a1 = sigmoid(z1) # output of the hidden layer (sigmoid activation function) z2 = np.matmul(a1, w2) + b2 # input of the output layer a2 = sigmoid(z2) # output of the output layer (sigmoid activation function) - predictions = a2 # the predicted values are the outputs of the output layer + predictions = a2 # the predicted values ar the outputs of the output layer # Compute loss (MSE) loss = np.mean(np.square(predictions - targets))