Skip to content

Commit 2dc683b

Browse files
committed
add the reference points
1 parent 8d0f5eb commit 2dc683b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

rslp/mangrove/create_windows.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,9 @@ def create_windows_from_csv(
128128
"Water": 2,
129129
"Other": 3,
130130
}
131-
df["ref_cls"] = df["res_col"].apply(lambda x: cls_lookup[x])
131+
# There's no Water in the reference points, Water and Other are combined.
132+
df["ref_cls"] = df["ref_col"].apply(lambda x: cls_lookup[x])
133+
df_sampled = df
132134
else:
133135
df_sampled = df.sample(100000, random_state=42)
134136
# ref_cls

0 commit comments

Comments
 (0)