def best(self, particlelist):
        picker = min if self.minimize else max
        return picker(particlelist, key=lambda p: p.fitness)
Return the particle with the best fitness from a list of particles.
dataset/ETHPy150Open pybrain/pybrain/pybrain/optimization/populationbased/pso.py/ParticleSwarmOptimizer.best