From 15c4c2c4bdc6a4d43dc71e03eeafef1e0ad040b4 Mon Sep 17 00:00:00 2001 From: Aananda-Giri <60064717+Aananda-giri@users.noreply.github.com> Date: Mon, 20 May 2024 10:15:47 +0545 Subject: [PATCH] Ch.6 Update lowest_loss initialization from `lowest_loss = 9999999` to `lowest_loss = np.inf` --- Chapter_6/Ch6_final.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Chapter_6/Ch6_final.py b/Chapter_6/Ch6_final.py index 3c06055d5..e211c87b1 100644 --- a/Chapter_6/Ch6_final.py +++ b/Chapter_6/Ch6_final.py @@ -110,7 +110,7 @@ def forward(self, y_pred, y_true): loss_function = Loss_CategoricalCrossentropy() # Helper variables -lowest_loss = 9999999 # some initial value +lowest_loss = np.inf # some initial value best_dense1_weights = dense1.weights.copy() best_dense1_biases = dense1.biases.copy() best_dense2_weights = dense2.weights.copy()