mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-18 13:55:17 +02:00
add random seed
This commit is contained in:
parent
b49334b16c
commit
5d2de4d0ec
1 changed files with 3 additions and 0 deletions
|
|
@ -17,6 +17,7 @@ def create_autosklearn_scorer(metric_name):
|
|||
|
||||
class ASRunner:
|
||||
time_limit = 300
|
||||
seed = 42
|
||||
|
||||
def __init__(self, state=None):
|
||||
self.state = state
|
||||
|
|
@ -49,6 +50,7 @@ class ASRunner:
|
|||
per_run_time_limit=60,
|
||||
metric=create_autosklearn_scorer(eval_metric),
|
||||
memory_limit=8192,
|
||||
seed=self.seed,
|
||||
tmp_folder="AutosklearnModels/as-{}-{}".format(
|
||||
self.state["task"], datetime.now().strftime("%y%m%d_%H%M")
|
||||
),
|
||||
|
|
@ -60,6 +62,7 @@ class ASRunner:
|
|||
per_run_time_limit=60,
|
||||
metric=create_autosklearn_scorer(eval_metric),
|
||||
memory_limit=8192,
|
||||
seed=self.seed,
|
||||
tmp_folder="AutosklearnModels/as-{}-{}".format(
|
||||
self.state["task"], datetime.now().strftime("%y%m%d_%H%M")
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue