dgs.models.submission.submission.SubmissionFile

class dgs.models.submission.submission.SubmissionFile(config: dict[str, any], path: list[str])[source]

Base module for generating and handling submission files.

The base module does not create a submission file and acts as the module with format “None”.

Params

Optional Params

file (str, optional):

Path to the submission file, within the log_dir of the respective BaseModule. Default DEF_VAL.submission.file.

__init__(config: dict[str, any], path: list[str])[source]

Methods

append(s, *_args, **_kwargs)

Append more data to the submission file.

clear()

Clear the submission data.

configure_torch_module(module[, train])

Set compute mode and send model to the device or multiple parallel devices if applicable.

save()

Save the submission data to the submission file.

terminate()

Terminate the submission file creation.

validate_params(validations[, attrib_name])

Given per key validations, validate this module's parameters.

Attributes

device

Get the device of this module.

is_training

Get whether this module is set to training-mode.

module_name

Get the name of the module.

module_type

name

Get the name of the module.

name_safe

Get the escaped name of the module usable in filepaths by replacing spaces and underscores.

precision

Get the (floating point) precision used in multiple parts of this module.

fp

format

data