def _oneGeneration(self):
        self.oldPops.append(self.pop)
        self.generation += 1
        fitnesses = self._evaluatePopulation()
        # store best in hall of fame
        besti = argmax(array(fitnesses))
        best = self.pop[besti]
        bestFits = sorted(fitnesses)[::-1][:self._numSelected()]
        self.hallOfFame.append(best)
        self.hallOfFitnesses.append(bestFits)

        if self.verbose:
            print(('Generation', self.generation))
            print(('        relat. fits:', fListToString(sorted(fitnesses), 4)))
            if 20 < len(best.params):
                print(('        best params:', fListToString(best.params, 4)))

        self.pop = self._selectAndReproduce(self.pop, fitnesses)
dataset/ETHPy150Open pybrain/pybrain/pybrain/optimization/populationbased/coevolution/coevolution.py/Coevolution._oneGeneration/swapped operands of `<`