#1386: added the ability to set deterministic and seeding RNG when training and evaluating + the fix provided in #1535
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user