#1386: added the ability to set deterministic and seeding RNG when training and evaluating + the fix provided in #1535

This commit is contained in:
Czar Echavez
2023-06-20 10:41:30 +01:00
parent 9b0e24c27b
commit 0ab4520904
13 changed files with 1217 additions and 399 deletions

View File

@@ -137,6 +137,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: 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.