def __call__(self, R):
        res = zeros(len(R))
        for i in range(len(R)):
            l = [i]
            for dummy in range(self.tournamentSize - 1):
                randindex = i
                while randindex == i:
                    randindex = randint(0, len(R) - 1)
                l.append(randindex)
            fits = [R[x] for x in l]
            res[argmax(fits)] += 1
        return res
dataset/ETHPy150Open pybrain/pybrain/pybrain/tools/rankingfunctions.py/TournamentSelection.__call__/original