machine_to_invoke=LoopInvokerMachine(new_machine)), num_episodes=num_episodes, env=env, params=params) if sum(params.logs["ep_rewards"][-100:]) > 0: print("{test}done_it".format(**locals()), sum(params.logs["ep_rewards"])) to_plot.append( PlotParams(curve_to_draw=params.logs["ep_rewards"], label="Random" + str(seed + 1))) draw_graph( "pics/" + str(seed), new_machine.get_graph_to_draw( action_to_name_mapping=env.get_actions_as_dict())) except KeyError: print("keyError", end="") except AssertionError: print("assertion", end="") plot_multi(to_plot) if __name__ == '__main__': global_env_01, global_env_02, global_env_03 = EnvironmentsArticle( ).environments main( begin_seed=random.randrange(1, 2000000000), global_env=global_env_01, )
def main(): for global_env in EnvironmentsArticle().environments: run(global_env)
def main(): # for global_env in EnvironmentsArticle().environments: run(EnvironmentsArticle().environments[0])