Skip to content

Commit

Permalink
add nettack on a few nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
abhhfcgjk committed Oct 18, 2024
1 parent f2aff35 commit f9cb1ea
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/attacks/evasion_attacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,18 +149,6 @@ def __init__(self,node_idxs, **kwargs):
self.perturb_structure = kwargs.get("perturb_structure")
self.direct = kwargs.get("direct")
self.n_influencers = kwargs.get("n_influencers")
# node_idx = 0,
# n_perturbations = None,
# perturb_features = True,
# perturb_structure = True,
# direct = True,
# n_influencers = 0
# self.attacker = NettackEvasionAttacker(0,
# n_perturbations=self.n_perturbations,
# perturb_features=self.perturb_features,
# perturb_structure=self.perturb_structure,
# direct=self.direct,
# n_influencers=self.n_influencers)
self.attacker = NettackEvasionAttacker(0, **kwargs)

def attack(self, model_manager, gen_dataset, mask_tensor):
Expand Down

0 comments on commit f9cb1ea

Please sign in to comment.