(self, **args)
Evaluate all individuals in population, calls the evaluate() method of individuals

      :param args: this params are passed to the evaluation function
Evaluate all individuals in population, calls the evaluate() method of individuals
Evaluate all individuals in population calls the evaluate () method of individuals
def evaluate(self, **args):
      """ Evaluate all individuals in population, calls the evaluate() method of individuals

      :param args: this params are passed to the evaluation function

      """
      # We have multiprocessing
      if self.multiProcessing[0] and MULTI_PROCESSING:
         logging.debug("Evaluating the population using the multiprocessing method")
         proc_pool = Pool(processes=self.multiProcessing[2])

         # Multiprocessing full_copy parameter
         if self.multiProcessing[1]:
            results = proc_pool.map(multiprocessing_eval_full, self.internalPop)
            proc_pool.close()
            proc_pool.join()
            for i in xrange(len(self.internalPop)):
               self.internalPop[i] = results[i]
         else:
            results = proc_pool.map(multiprocessing_eval, self.internalPop)
            proc_pool.close()
            proc_pool.join()
            for individual, score in zip(self.internalPop, results):
               individual.score = score
      else:
         for ind in self.internalPop:
            ind.evaluate(**args)

      self.clearFlags()
def evaluate ( self , * * args ) : # We have multiprocessing if self . multiProcessing [ 0 ] and MULTI_PROCESSING : logging . debug ( "Evaluating the population using the multiprocessing method" ) proc_pool = Pool ( processes = self . multiProcessing [ 2 ] ) # Multiprocessing full_copy parameter if self . multiProcessing [ 1 ] : results = proc_pool . map ( multiprocessing_eval_full , self . internalPop ) proc_pool . close ( ) proc_pool . join ( ) for i in xrange ( len ( self . internalPop ) ) : self . internalPop [ i ] = results [ i ] else : results = proc_pool . map ( multiprocessing_eval , self . internalPop ) proc_pool . close ( ) proc_pool . join ( ) for individual , score in zip ( self . internalPop , results ) : individual . score = score else : for ind in self . internalPop : ind . evaluate ( * * args ) self . clearFlags ( )