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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user