Skip to content

Commit

Permalink
updated dataset file
Browse files Browse the repository at this point in the history
  • Loading branch information
MsPixels committed May 30, 2024
1 parent 6de2bb0 commit 589e938
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,7 @@ def load_labels(self) -> pd.DataFrame:
raw_folder = raw_dir / "Uganda_North_2022_GEE_labels"
df = pd.read_csv(raw_folder / "UGA_2022_labels_from_GEE.csv")
df.rename(columns={"lat": LAT, "long": LON}, inplace=True)
df = df.drop_duplicates(subset=[LAT, LON]).reset_index(drop=True)
df[CLASS_PROB] = (df["class_probability"] == 1).astype(int)
df[START], df[END] = date(2022, 1, 1), date(2023, 12, 31)
df[SUBSET] = "training"
Expand Down

0 comments on commit 589e938

Please sign in to comment.