Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The code seeems to lack discrete features and feature normalization? #5

Open
Gmrider13 opened this issue Mar 26, 2024 · 0 comments
Open

Comments

@Gmrider13
Copy link

Hi, I encountered confusion when testing datasets with discrete node features.

For example, the node features in the Cora dataset are discrete and are normalized with a L1 norm (i.e., data.x.sum(dim=1) is 1 and all non-zero features have the same value for every node). Generally, features of injected nodes should be processed using the same data processing method. I noticed that there is a commented out code in line81 if backdoor.py, which makes the feature discrete. However, the feature is not normalized before being injected into the graph.

I use F.normalise(trojan_feat, p=1, dim=1) to normalize the features in line153, line214, and line241, but find that the attack is not successful.

May I ask if I missed any other factors? Thank you for your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant