def add_agent(self): if len(self.agents) == 0: self.agents.append( ProcessAgent(self.model, len(self.agents), self.prediction_q, self.training_q, self.stats.episode_log_q, self.num_actions, self.stats)) else: self.agents.append( ProcessAgent(self.model, len(self.agents), self.prediction_q, self.training_q, self.stats.episode_log_q, self.num_actions, None)) self.agents[-1].start()
def add_agent(self): self.agents.append( ProcessAgent(len(self.agents), self.prediction_q, self.training_q, self.stats.episode_log_q)) self.agents[-1].start()