Comments (4)
Hi,
Thanks for your interest in DeepRobust. I wanted to clarify a few points here:
- The most straightforward way to attack other models (GAT and GraphSAGE) is to use the attacked graph generated by GCN (which is the default backbone model). In detail, we first use attack methods to attack GCN model and obtain the attacked graph. Then we feed this attacked graph to other models. The attacked graph is shown to be able to transfer to attack other models.
- You can also use GraphSAGE/GAT as backbone models. But these models do not directly take the edge_weight as input, so we did modification on the model. An example is shown in test_prbcd_cora.py. Try:
pip install deeprobust==0.2.8
python examples/graph/test_prbcd_cora.py
from deeprobust.
Thank you for your reply. I am running python examples/graph/test_gcn_jaccard.py --dataset cora, but an error occurs. Isn't the zip file loaded? I used python=3.8,pytorch=1.12.1,and deeprobust==0.2.7. There is no deeprobust==0.2.8.
/opt/conda/envs/graph/bin/python3.8 /root/.pycharm_helpers/pydev/pydevd.py --multiprocess --qt-support=auto --client localhost --port 37615 --file /home/Huali Ren/DeepRobust-master/examples/graph/test_gcn_jaccard.py
Connected to pydev debugger (build 223.8617.48)
cuda: True
Loading cora dataset...
python-BaseException
Traceback (most recent call last):
File "/opt/conda/envs/graph/lib/python3.8/site-packages/numpy/lib/npyio.py", line 420, in load
ret = NpzFile(fid, own_fid=own_fid, allow_pickle=allow_pickle,
File "/opt/conda/envs/graph/lib/python3.8/site-packages/numpy/lib/npyio.py", line 187, in init
_zip = zipfile_factory(fid)
File "/opt/conda/envs/graph/lib/python3.8/site-packages/numpy/lib/npyio.py", line 103, in zipfile_factory
return zipfile.ZipFile(file, *args, **kwargs)
File "/opt/conda/envs/graph/lib/python3.8/zipfile.py", line 1269, in init
self._RealGetContents()
File "/opt/conda/envs/graph/lib/python3.8/zipfile.py", line 1336, in _RealGetContents
raise BadZipFile("File is not a zip file")
zipfile.BadZipFile: File is not a zip file
Process finished with exit code 1
from deeprobust.
Hi, can you try it again? It works well on my side "pip install deeprobust==0.2.8"
from deeprobust.
Yes, it still can't be installed on my side. In addition, I would like to ask whether IG's countersample generation code is provided by the source author? Because I found that the attack success rate obtained by running test_ig.py on citeseer dataset is less than 40%, but nettack's method can reach more than 90%. May I ask what parameters need to be adjusted?
from deeprobust.
Related Issues (20)
- MetaAttack will OOM if PyTorch>1.9 HOT 2
- A possible solution to OOM in Metattack. HOT 11
- what is the param "ptb_rate " of PrePtbDataset means ? HOT 1
- Does DeepRobust include graph classification? HOT 3
- why the cora dataset in deeprobust have 2485 nodes,and cora dataset in pyg have 2708 nodes? which one is correct? HOT 1
- How targeted_attack attack a subset of nodes? HOT 2
- The problem of NIPA HOT 1
- Issue With Dataset library in deeprobust for Setting as prognn and for Windows Platform. HOT 2
- Does deeprobust support ImageNet dataset and how to set parameters for attack algorithms when using it?
- AttributeError: 'Dataset' object has no attribute 'root' Dataset of deeprobust HOT 2
- error during installation windows 11 HOT 6
- Dose deeprobust support image segmentation models such as FCN? how to use it
- A source code error when using deeprobust.graph.data.Dataset under windows (have solved) HOT 3
- Custom Dataset HOT 1
- Issues related to graph injection attacks on NIPA HOT 5
- About Random Seeds HOT 2
- Getting scipy error on running test_pgdtraining.py
- Question about PGD graph global attack with CE/CW loss
- Can this support GraphSAGE?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deeprobust.