Skip to content

Commit

Permalink
Remove seed line from experiment file
Browse files Browse the repository at this point in the history
  • Loading branch information
JMGaljaard committed Mar 28, 2022
1 parent c048dff commit ffa529f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions fltk/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 0 additions & 1 deletion fltk/util/task/generator/arrival_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit ffa529f

Please sign in to comment.