Reinforcement Learning, Pytorch, Genetic Algorithm, Multiprocessing, Evolutionary Algorithms.
simple iteration. We have to override this method and replace the iteration with the map method of the pool: class PooledGA(pygad.GA): def cal_pop_fitness(self): global pool pop_fitness = pool.map(fitness_wrapper, self.population) print(pop_fitness) pop_fitness = np.array(pop_fitness) return