Skip to content

Latest commit

History

History
46 lines (36 loc) 路 1.26 KB

goal_functions.rst

File metadata and controls

46 lines (36 loc) 路 1.26 KB

Goal Functions API Reference

~textattack.goal_functions.GoalFunction determines both the conditions under which the attack is successful (in terms of the model outputs) and the heuristic score that we want to maximize when searching for the solution.

GoalFunction

textattack.goal_functions.GoalFunction

ClassificationGoalFunction

textattack.goal_functions.classification.ClassificationGoalFunction

TargetedClassification

textattack.goal_functions.classification.TargetedClassification

UntargetedClassification

textattack.goal_functions.classification.UntargetedClassification

InputReduction

textattack.goal_functions.classification.InputReduction

TextToTextGoalFunction

textattack.goal_functions.text.TextToTextGoalFunction

MinimizeBleu

textattack.goal_functions.text.MinimizeBleu

NonOverlappingOutput

textattack.goal_functions.text.NonOverlappingOutput