#1386: remove unneeded configs + setting the seed globally + temp test

This commit is contained in:
Czar Echavez
2023-07-05 15:02:41 +01:00
parent b0c83d7148
commit 0068092d8b
15 changed files with 328 additions and 482 deletions

View File

@@ -178,6 +178,12 @@ class TrainingConfig:
file_system_scanning_limit: int = 5
"The time taken to scan the file system"
deterministic: bool = False
"If true, the training will be deterministic"
seed: Optional[int] = None
"The random number generator seed to be used while training the agent"
@classmethod
def from_dict(cls, config_dict: Dict[str, Union[str, int, bool]]) -> TrainingConfig:
"""
@@ -201,12 +207,6 @@ class TrainingConfig:
config_dict[key] = value[config_dict[key]]
return TrainingConfig(**config_dict)
deterministic: bool = False
"If true, the training will be deterministic"
seed: Optional[int] = None
"The random number generator seed to be used while training the agent"
def to_dict(self, json_serializable: bool = True):
"""
Serialise the ``TrainingConfig`` as dict.