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 respectiveBaseModule
. DefaultDEF_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 the submission file creation.
validate_params
(validations[, attrib_name])Given per key validations, validate this module's parameters.
Attributes
Get the device of this module.
Get whether this module is set to training-mode.
Get the name of the module.
Get the name of the module.
Get the escaped name of the module usable in filepaths by replacing spaces and underscores.
Get the (floating point) precision used in multiple parts of this module.