From 1c8a9357704825adf5e6ef30b472711d681d2209 Mon Sep 17 00:00:00 2001 From: Danjou <pierre.danjou@etu.ec-lyon.fr> Date: Tue, 12 Nov 2024 11:54:04 +0100 Subject: [PATCH] last update --- mlp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mlp.py b/mlp.py index 87734d9..5042a8c 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)) -- GitLab