Skip to content

Commit

Permalink
add tests for annotations loader
Browse files Browse the repository at this point in the history
  • Loading branch information
rwood-97 committed Sep 2, 2024
1 parent b6a26e0 commit 5f5456c
Show file tree
Hide file tree
Showing 4 changed files with 172 additions and 7 deletions.
4 changes: 2 additions & 2 deletions mapreader/classify/load_annotations.py
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ def create_datasets(
val_transform: str | (Compose | Callable) = "val",
test_transform: str | (Compose | Callable) = "test",
context_datasets: bool = False,
context_df: str | pd.DataFrame | gpd.GeoDataFrame | None = None,
context_df: str | pathlib.Path | pd.DataFrame | gpd.GeoDataFrame | None = None,
) -> None:
"""
Splits the dataset into three subsets: training, validation, and test sets (DataFrames) and saves them as a dictionary in ``self.datasets``.
Expand Down Expand Up @@ -584,7 +584,7 @@ def create_datasets(
By default "test".
context_datasets: bool, optional
Whether to create context datasets or not. By default False.
context_df: str or pandas.DataFrame or gpd.GeoDataFrame, optional
context_df: str or or pathlib.Path or pandas.DataFrame or gpd.GeoDataFrame, optional
The DataFrame containing all patches if using context datasets.
Used to create context images. By default None.
Expand Down
Loading

0 comments on commit 5f5456c

Please sign in to comment.