Skip to content

Commit

Permalink
fix flake8 error
Browse files Browse the repository at this point in the history
  • Loading branch information
adebowaledaniel committed Jun 11, 2024
1 parent 91d6944 commit 09a9ea3
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -552,18 +552,6 @@ def load_labels(self) -> pd.DataFrame:
return df


class UgandaNorthCorLabel2022(LabeledDataset):
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"
return df


class KenyaCropArea2019(LabeledDataset):
def load_labels(self) -> pd.DataFrame:
raw_folder = raw_dir / "Kenya_Crop_Area_2019"
Expand Down

0 comments on commit 09a9ea3

Please sign in to comment.