Hello! I have encountered a problem while using DeepRobust (Nettack) to attack the Cora dataset. I have noticed that in the Nettack API, the target_node argument should be an integer. How can I modify this API to attack a list of nodes instead?
target_node = 0model = Nettack(surrogate, nnodes=adj.shape[0], attack_structure=True, attack_features=True, device='cpu').to('cpu')model.attack(features, adj, labels, target_node, n_perturbations=5)
Hello! I have encountered a problem while using DeepRobust (Nettack) to attack the Cora dataset. I have noticed that in the Nettack API, the target_node argument should be an integer. How can I modify this API to attack a list of nodes instead?
target_node = 0
model = Nettack(surrogate, nnodes=adj.shape[0], attack_structure=True, attack_features=True, device='cpu').to('cpu')
model.attack(features, adj, labels, target_node, n_perturbations=5)