diff --git a/fltk/__main__.py b/fltk/__main__.py index 37f6605e..c6332429 100644 --- a/fltk/__main__.py +++ b/fltk/__main__.py @@ -48,11 +48,16 @@ def cluster_start(args: Namespace, configuration: BareConfig): """ logging.basicConfig(level=logging.DEBUG, datefmt='%m-%d %H:%M') + # Set the seed for arrivals, torch seed is mostly ignored. Set the `arrival_seed` to a different value + # for each repetition that you want to run an experiment with. + configuration.set_seed() launch_orchestrator(args=args, conf=configuration) def client_start(args: Namespace, configuration: BareConfig): learning_params = extract_learning_parameters(args) + # Set the seed for PyTorch, numpy seed is mostly ignored. Set the `torch_seed` to a different value + # for each repetition that you want to run an experiment with. configuration.set_seed() task_id = args.task_id launch_client(task_id, config=configuration, learning_params=learning_params, namespace=args) diff --git a/fltk/util/task/generator/arrival_generator.py b/fltk/util/task/generator/arrival_generator.py index dbe80a72..9f453e9b 100644 --- a/fltk/util/task/generator/arrival_generator.py +++ b/fltk/util/task/generator/arrival_generator.py @@ -146,7 +146,6 @@ def run(self, duration: float): @return: None @rtype: None """ - np.random.seed(42) self.start_time = time.time() self.logger.info("Populating tick lists with initial arrivals") for task_id in self.job_dict.keys():