From 695bfb409c523108b114aab516a40c41cf38d3bd Mon Sep 17 00:00:00 2001 From: HaoYizhi Date: Sun, 2 Jul 2023 15:17:46 +0800 Subject: [PATCH] set maximun interation limit: para n_iter --- conf_experiment.yaml | 2 -- controller_db.py | 1 - model.py | 1 - 3 files changed, 4 deletions(-) diff --git a/conf_experiment.yaml b/conf_experiment.yaml index 0137445..012f9a9 100644 --- a/conf_experiment.yaml +++ b/conf_experiment.yaml @@ -5,8 +5,6 @@ meta_seed: 0 test: # only for test scenarios n_sample: 1 - n_iter: 20 not_test: # normal scenarios n_sample: 50 - n_iter: 20 diff --git a/controller_db.py b/controller_db.py index 550a28c..896c938 100644 --- a/controller_db.py +++ b/controller_db.py @@ -134,7 +134,6 @@ class ControllerDB: idx_scenario=idx_scenario, idx_init_removal=idx_init_removal, n_sample=int(self.dct_parameter['n_sample']), - n_iter=int(self.dct_parameter['n_iter']), dct_lst_init_disrupt_firm_prod=dct_lst_init_disrupt_firm_prod, g_bom=g_bom, n_max_trial=n_max_trial, diff --git a/model.py b/model.py index d6e6881..8c06bfd 100644 --- a/model.py +++ b/model.py @@ -13,7 +13,6 @@ class Model(ap.Model): # self para self.sample = self.p.sample self.int_stop_times, self.int_stop_t = 0, None - self.int_n_iter = int(self.p.n_iter) self.product_network = None # agentpy network self.firm_network = None # agentpy network self.firm_prod_network = None # networkx