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