Skip to content

Commit

Permalink
Merge pull request #596 from dangne/master
Browse files Browse the repository at this point in the history
Fix minor typos in docstring
  • Loading branch information
qiyanjun committed Dec 14, 2021
2 parents aded95e + 950ee5e commit 7675c17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions textattack/search_methods/alzantot_genetic_algorithm.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ class AlzantotGeneticAlgorithm(GeneticAlgorithm):
"""Attacks a model with word substiutitions using a genetic algorithm.
Args:
pop_size (int): The population size. Defaults to 20.
max_iters (int): The maximum number of iterations to use. Defaults to 50.
pop_size (int): The population size. Defaults to 60.
max_iters (int): The maximum number of iterations to use. Defaults to 20.
temp (float): Temperature for softmax function used to normalize probability dist when sampling parents.
Higher temperature increases the sensitivity to lower probability candidates.
give_up_if_no_improvement (bool): If True, stop the search early if no candidate that improves the score is found.
Expand Down

0 comments on commit 7675c17

Please sign in to comment.