Skip to content

Commit

Permalink
add conduct_experiment in class AttackAndDefenseManager
Browse files Browse the repository at this point in the history
  • Loading branch information
LukyanovKirillML committed Jul 16, 2024
1 parent 06d6809 commit 9df52ed
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/models_builder/attack_defense_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,16 @@ def __init__(
def conduct_experiment(self):
if self.poison_attacker is not None and self.poison_attack_flag:
self.poison_attacker.attack()
# if self.poison_attacker is not None and self.poison_attack_flag:
# self.poison_attacker.attack()
# if self.poison_attacker is not None and self.poison_attack_flag:
# self.poison_attacker.attack()
# if self.poison_attacker is not None and self.poison_attack_flag:
# self.poison_attacker.attack()
# if self.poison_attacker is not None and self.poison_attack_flag:
# self.poison_attacker.attack()
# if self.poison_attacker is not None and self.poison_attack_flag:
# self.poison_attacker.attack()
if self.poison_defender is not None and self.poison_defense_flag:
self.poison_defender.defense()
if self.mi_defender is not None and self.mi_defense_flag:
self.mi_defender.defense()
if self.evasion_defender is not None and self.evasion_defense_flag:
self.evasion_defender.defense()
if self.evasion_attacker is not None and self.evasion_attack_flag:
self.evasion_attacker.attack()
if self.mi_attacker is not None and self.poison_attack_flag:
self.mi_attacker.attack()

def save(self):
pass
Expand Down

0 comments on commit 9df52ed

Please sign in to comment.