You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
The text was updated successfully, but these errors were encountered:
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)
The text was updated successfully, but these errors were encountered: