def _build_agent(self, id, agent_file): Logger.print2('Agent {:d}: {}'.format(id, agent_file)) if (agent_file == 'none'): agent = None else: agent = AgentBuilder.build_agent(self, id, agent_file) assert (agent != None), 'Failed to build agent {:d} from: {}'.format(id, agent_file) return agent
def _build_agent(self, id, agent_file): Logger.print('Agent {:d}: {}'.format(id, agent_file)) if (agent_file == 'none'): agent = None else: agent = AgentBuilder.build_agent(self, id, agent_file) assert (agent != None), 'Failed to build agent {:d} from: {}'.format(id, agent_file) return agent
def _build_agent(self, id, agent_file): # represent the agent id and file_name Logger.print('Agent {:d}: {}'.format(id, agent_file)) if (agent_file == 'none'): agent = None else: # build PPO Agent class => agent agent = AgentBuilder.build_agent(self, id, agent_file) assert (agent != None), 'Failed to build agent {:d} from: {}'.format( id, agent_file) return agent