Skip to content
Snippets Groups Projects
Commit 39e6f313 authored by tomrink's avatar tomrink
Browse files

initial commit

parent 13e61261
Branches
No related tags found
No related merge requests found
......@@ -206,15 +206,15 @@ class IcingIntensityNN:
label = np.where(label == -1, 0, label)
# binary, two class
#label = np.where(label != 0, 1, label)
#label = label.reshape((label.shape[0], 1))
keep = (label == 0) | (label == 3) | (label == 4) | (label == 5) | (label == 6)
data = data[keep,]
label = label[keep]
label = np.where(label != 0, 1, label)
label = label.reshape((label.shape[0], 1))
# keep = (label == 0) | (label == 3) | (label == 4) | (label == 5) | (label == 6)
# data = data[keep,]
# label = label[keep]
# label = np.where(label != 0, 1, label)
# label = label.reshape((label.shape[0], 1))
if CACHE_DATA_IN_MEM:
self.in_mem_data_cache[key] = (data, label)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment