Skip to content

Commit

Permalink
Addresses #463
Browse files Browse the repository at this point in the history
  • Loading branch information
kallewesterling committed Jul 17, 2024
1 parent 8bf049a commit f8265ee
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions mapreader/classify/load_annotations.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@


class AnnotationsLoader:
"""
A class for loading annotations and preparing datasets and dataloaders for
use in training/validation of a model.
"""

def __init__(self):
"""
A Class for loading annotations and preparing datasets and dataloaders for use in training/validation of a model.
"""
self.annotations = pd.DataFrame()
self.reviewed = pd.DataFrame()
self.patch_paths_col = None
Expand All @@ -41,7 +43,9 @@ def load(
scramble_frame: bool | None = False,
reset_index: bool | None = False,
):
"""Loads annotations from a csv file or dataframe and can be used to set the ``patch_paths_col`` and ``label_col`` attributes.
"""
Loads annotations from a csv file or dataframe and can be used to set
the ``patch_paths_col`` and ``label_col`` attributes.
Parameters
----------
Expand Down

0 comments on commit f8265ee

Please sign in to comment.