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

add gradient-based white-box search

This commit is contained in:
Jin Yong Yoo
2020-10-05 18:46:47 -04:00
parent 6273b19c19
commit bdbeae80d2
7 changed files with 71 additions and 8 deletions

View File

@@ -285,6 +285,10 @@ class GeneticAlgorithm(PopulationBasedSearch, ABC):
substitutions."""
return transformation_consists_of_word_swaps(transformation)
@property
def is_blackbox(self):
return True
def extra_repr_keys(self):
return [
"pop_size",