1
0
mirror of https://github.com/QData/TextAttack.git synced 2021-10-13 00:05:06 +03:00

fix num-retires

This commit is contained in:
Jin Yong Yoo
2020-06-30 05:58:41 -04:00
parent 9b5dd320ff
commit 779d82e524

View File

@@ -110,7 +110,7 @@ class GeneticAlgorithm(SearchMethod):
num_tries = 0
passed_constraints = False
while num_tries < self.max_crossover_retries:
while num_tries < self.max_crossover_retries + 1:
indices_to_replace = []
words_to_replace = []
num_candidates_per_word = np.copy(pop_member1.num_candidates_per_word)