eurocropsml.dataset.dataset.EuroCropsDatasetΒΆ
- class EuroCropsDataset(file_dict: dict[str, list[Path]], encode: dict[int, int], mmap_store: MMapStore, config: EuroCropsDatasetConfig, preprocess_config: EuroCropsDatasetPreprocessConfig, pad_seq_to_366: bool = False, padding_value: float = 0.0)ΒΆ
Bases:
Dataset[LabelledData]PyTorch dataset class for the EuroCropsML dataset.
- Parameters:
file_dict β Dictionary of file paths (one file per parcel/time series) for each satellite.
encode β Encoding used to encode the classes into integers.
mmap_store β Instance of memory map store.
config β EuroCropsDatasetConfig instance.
preprocess_config β EuroCropsDatasetPreprocessConfig instance.
pad_seq_to_366 β If sequence should be padded to 366 days.
padding_value β Padding value used for padding data sequences.
Methods
__init__(file_dict, encode, mmap_store, ...)