Skip to content

Commit

Permalink
+
Browse files Browse the repository at this point in the history
  • Loading branch information
LukyanovKirillML committed Jul 19, 2024
1 parent 9c4635e commit aa8cfa8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/models_builder/gnn_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ def set_poison_attacker(self, poison_attack_config=None, poison_attack_name: str
if poison_attack_name is None:
poison_attack_name = self.poison_attack_config._class_name
elif poison_attack_name != self.poison_attack_config._class_name:
raise Exception(f"poison_attack_name and self.poison_attack_config._class_name should be eqequal, "
raise Exception(f"poison_attack_name and self.poison_attack_config._class_name should be equal, "
f"but now poison_attack_name is {poison_attack_name}, "
f"self.poison_attack_config._class_name is {self.poison_attack_config._class_name}")
self.poison_attack_name = poison_attack_name
Expand Down Expand Up @@ -351,7 +351,7 @@ def set_evasion_attacker(self, evasion_attack_config=None, evasion_attack_name:
if evasion_attack_name is None:
evasion_attack_name = self.evasion_attack_config._class_name
elif evasion_attack_name != self.evasion_attack_config._class_name:
raise Exception(f"evasion_attack_name and self.evasion_attack_config._class_name should be eqequal, "
raise Exception(f"evasion_attack_name and self.evasion_attack_config._class_name should be equal, "
f"but now evasion_attack_name is {evasion_attack_name}, "
f"self.evasion_attack_config._class_name is {self.evasion_attack_config._class_name}")
self.evasion_attack_name = evasion_attack_name
Expand Down Expand Up @@ -387,7 +387,7 @@ def set_mi_attacker(self, mi_attack_config=None, mi_attack_name: str = None):
if mi_attack_name is None:
mi_attack_name = self.mi_attack_config._class_name
elif mi_attack_name != self.mi_attack_config._class_name:
raise Exception(f"mi_attack_name and self.mi_attack_config._class_name should be eqequal, "
raise Exception(f"mi_attack_name and self.mi_attack_config._class_name should be equal, "
f"but now mi_attack_name is {mi_attack_name}, "
f"self.mi_attack_config._class_name is {self.mi_attack_config._class_name}")
self.mi_attack_name = mi_attack_name
Expand Down Expand Up @@ -423,7 +423,7 @@ def set_poison_defender(self, poison_defense_config=None, poison_defense_name: s
if poison_defense_name is None:
poison_defense_name = self.poison_defense_config._class_name
elif poison_defense_name != self.poison_defense_config._class_name:
raise Exception(f"poison_defense_name and self.poison_defense_config._class_name should be eqequal, "
raise Exception(f"poison_defense_name and self.poison_defense_config._class_name should be equal, "
f"but now poison_defense_name is {poison_defense_name}, "
f"self.poison_defense_config._class_name is {self.poison_defense_config._class_name}")
self.poison_defense_name = poison_defense_name
Expand Down Expand Up @@ -459,7 +459,7 @@ def set_evasion_defender(self, evasion_defense_config=None, evasion_defense_name
if evasion_defense_name is None:
evasion_defense_name = self.evasion_defense_config._class_name
elif evasion_defense_name != self.evasion_defense_config._class_name:
raise Exception(f"evasion_defense_name and self.evasion_defense_config._class_name should be eqequal, "
raise Exception(f"evasion_defense_name and self.evasion_defense_config._class_name should be equal, "
f"but now evasion_defense_name is {evasion_defense_name}, "
f"self.evasion_defense_config._class_name is {self.evasion_defense_config._class_name}")
self.evasion_defense_name = evasion_defense_name
Expand Down Expand Up @@ -495,7 +495,7 @@ def set_mi_defender(self, mi_defense_config=None, mi_defense_name: str = None):
if mi_defense_name is None:
mi_defense_name = self.mi_defense_config._class_name
elif mi_defense_name != self.mi_defense_config._class_name:
raise Exception(f"mi_defense_name and self.mi_defense_config._class_name should be eqequal, "
raise Exception(f"mi_defense_name and self.mi_defense_config._class_name should be equal, "
f"but now mi_defense_name is {mi_defense_name}, "
f"self.mi_defense_config._class_name is {self.mi_defense_config._class_name}")
self.mi_defense_name = mi_defense_name
Expand Down

0 comments on commit aa8cfa8

Please sign in to comment.