Skip to content

loaddatafunctions

loaddatafunctions

Module for LoadDataFunctions

Classes

LoadCsvFile

Bases: LoadDataFunc

Loads csv data from a cloud storage

LoadDataFunc

Bases: ABC

Abstract class to load arbitrary data via a storages

Functions
load_data abstractmethod
load_data(file_path, storage)

loads data from cloud storage

Source code in niceml/experiments/loaddatafunctions.py
@abstractmethod
def load_data(self, file_path: str, storage: StorageInterface) -> Any:
    """loads data from cloud storage"""

LoadImageFile

LoadImageFile(target_size, output_dtype=np.uint8)

Bases: LoadDataFunc

Loads image data from a cloud storage

Source code in niceml/experiments/loaddatafunctions.py
def __init__(self, target_size: ImageSize, output_dtype=np.uint8):
    self.target_size = target_size
    self.output_dtype = output_dtype

LoadParquetFile

Bases: LoadDataFunc

Loads parquet data from a cloud storage

LoadYamlFile

Bases: LoadDataFunc

Loads yaml data from a cloud storage