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

alzantot 50->20

This commit is contained in:
Jack Morris
2019-12-04 11:18:53 -05:00
committed by GitHub
parent a73a23b2ac
commit 4325cdd52f

View File

@@ -27,7 +27,7 @@ def Alzantot2018GeneticAlgorithm(model):
# Perform word substitution with a genetic algorithm.
#
attack = GeneticAlgorithm(model, transformations=[transformation],
pop_size=60, max_iters=50)
pop_size=60, max_iters=20)
#
# Maximum word embedding euclidean distance of 0.5.
#
@@ -41,4 +41,4 @@ def Alzantot2018GeneticAlgorithm(model):
GoogleLanguageModel(top_n_per_index=4)
)
return attack
return attack