diff --git a/modules/icing/pirep_goes.py b/modules/icing/pirep_goes.py index 507e0bb5d899b7b91992975baf4327ea0f350a07..406e0317589f91e7e7a0bf9d27811f87893e48a1 100644 --- a/modules/icing/pirep_goes.py +++ b/modules/icing/pirep_goes.py @@ -533,13 +533,14 @@ def process(ice_dct, no_ice_dct, neg_ice_dct): ice_keys_2 = np.array(ice_keys_2) ice_tidx_2 = np.array(ice_tidx_2) print('2: ', ice_keys_2.shape[0]) - # np.random.seed(42) - # ridxs = np.random.permutation(np.arange(ice_keys_2.shape[0])) - # ice_keys_2 = ice_keys_2[ridxs] - # ice_tidx_2 = ice_tidx_2[ridxs] - # ice_keys_2 = ice_keys_2[::2] - # ice_tidx_2 = ice_tidx_2[::2] - # print('2: reduced: ', ice_tidx_2.shape) + np.random.seed(42) + ridxs = np.random.permutation(np.arange(ice_keys_2.shape[0])) + ice_keys_2 = ice_keys_2[ridxs] + ice_tidx_2 = ice_tidx_2[ridxs] + num = int(ice_keys_2.shape[0] * 0.7) + ice_keys_2 = ice_keys_2[0:num] + ice_tidx_2 = ice_tidx_2[0:num] + print('2: reduced: ', ice_tidx_2.shape) ice_keys_1 = np.array(ice_keys_1) ice_tidx_1 = np.array(ice_tidx_1)