diff --git a/modules/deeplearning/icing_cnn.py b/modules/deeplearning/icing_cnn.py
index f5771128b3f2e5d33d53012b0d42d81b9f4cb1c1..e64d9e7fde96cdc8e0cf8b187e756bb9c5ea34d0 100644
--- a/modules/deeplearning/icing_cnn.py
+++ b/modules/deeplearning/icing_cnn.py
@@ -599,7 +599,7 @@ class IcingIntensityNN:
 
         step = 0
         total_time = 0
-        last_test_loss = np.finfo(dtype=np.float)
+        last_test_loss = np.finfo(dtype=np.float).max
 
         if EARLY_STOP:
             es = EarlyStop()