DSE-MSU / DeepRobust

A pytorch adversarial library for attack and defense methods on images and graphs
MIT License
994 stars 192 forks source link

Is dataset.py not compatible with prognn? #58

Closed barry404 closed 3 years ago

ChandlerBang commented 3 years ago

Can you give more information? It should be compatible.

ChandlerBang commented 3 years ago

If you are using the lastest code, you can specify setting='prognn' in Dataset() to get the data splits used in ProGNN. data = Dataset(root='/tmp/', name='cora', setting='prognn')

If you wanna know more about how ProGNN generates the splits, please take a look at the script.

barry404 commented 3 years ago

I guess it's because the it's the setup.py import deeprobust-0.2.0😂

ChandlerBang commented 3 years ago

You can simply run python setup_empty.py install to install the latest code. Or instead you can use the code in this script which is basically using data = Dataset(root='/tmp/', name='cora', setting='nettack', seed=15).

barry404 commented 3 years ago

Thank you. Wei

ChandlerBang commented 3 years ago

You're welcome :)