data_sources.metadata

Metadata data sources and functions

data_sources.metadata.metadata_model

Model for output of general/metadata data, useful for a batch

Metadata Objects

class Metadata(BaseModel)

Class to store metedata data

save_to_csv

def save_to_csv(path)

Save metadata to a csv file

Arguments:

  • path - the path where the file shold be save

load_from_csv

def load_from_csv(path, batch_idx, batch_size) -> Metadata

Load metadata from csv

Arguments:

  • path - the path which stores the metadata file
  • batch_idx - the batch index
  • batch_size - how many examples in each batch

  • Returns - Metadata class