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()