From f792eebe1309ae2bff4502bfbf4ae973a50cb077 Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Mon, 3 May 2021 15:34:51 -0500 Subject: [PATCH] snapshot... --- modules/deeplearning/icing_cnn.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/deeplearning/icing_cnn.py b/modules/deeplearning/icing_cnn.py index 58dd9c05..36a6c57f 100644 --- a/modules/deeplearning/icing_cnn.py +++ b/modules/deeplearning/icing_cnn.py @@ -215,8 +215,8 @@ class IcingIntensityNN: label = np.where(label != 0, 1, label) label = label.reshape((label.shape[0], 1)) elif NumClasses == 3: - label = np.where((label == 1 | label == 2), 1, label) - label = np.where((label == 3 | label == 4 | label == 5 | label == 6), 2, label) + label = np.where(np.logical_or(label == 1, label == 2), 1, label) + label = np.where(np.invert(np.logical_or(label == 0, label == 1)), 2, label) if CACHE_DATA_IN_MEM: self.in_mem_data_cache[key] = (data, label) -- GitLab