From a11e168b2d3d4834d9e206f360bdc175e43286c2 Mon Sep 17 00:00:00 2001 From: siddharth-verma60 Date: Fri, 28 Jun 2019 22:09:21 +0530 Subject: [PATCH] Rectified an error in tournament selection --- exstracs_classifierset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exstracs_classifierset.py b/exstracs_classifierset.py index 28dfef7..607d0a2 100644 --- a/exstracs_classifierset.py +++ b/exstracs_classifierset.py @@ -349,7 +349,7 @@ def selectClassifierT(self): if self.popSet[j].fitness > bestF: bestF = self.popSet[j].fitness bestC = j - setList.remove(j) #select without re-sampling + setList.remove(bestC) #select without re-sampling selectList[currentCount] = self.popSet[bestC] currentCount += 1 elif len(setList) == 2: