Exemple #1
0
    def run_single(self):
        try:
            from run.runner import Runner
        except ModuleNotFoundError:
            from runner import Runner

        run = Runner(self.agent,
                     self.environment,
                     epochs=self.args.epochs,
                     episodes=self.args.episodes,
                     horizon=self.args.horizon,
                     mode='train',
                     verbose=self.args.verbose,
                     model_path=self.args.model_path,
                     seed=92)

        run.run()
        run.close(save_full=self.args.eval_path + '/full_' + str(self.agent) +
                  '_evaluation.csv',
                  save_short=self.args.eval_path + '/short_' +
                  str(self.agent) + '_evaluation.csv')
Exemple #2
0
from run.runner import Runner

if __name__ == "__main__":
    run = Runner()
    run.run("graph-5-hand-made", init_state_from_file=False)
Exemple #3
0
from run.runner import Runner

if __name__ == "__main__":
    run = Runner()
    run.run("graph_7-hand_made", init_state_from_file=False)