Git Product home page Git Product logo

graph_attack's Introduction

Data Science HW4

Please install anaconda & cuda 11.3 (if you want to use gpu) first.

Create the Environment

conda create --name hw4 -y
conda activate hw4
conda install scipy numpy -y
conda install pytorch torchvision torchaudio cudatoolkit=11.3 -c pytorch -y
  • without gpu support
conda install pytorch torchvision torchaudio cpuonly -c pytorch -y

Python version

Python 3.8.8

Package version

numba 0.53.1
numpy 1.20.1
torch 1.11.0
scipy 1.6.2

Run

python3 main.py 
  • You can pass arguments like this.
python3 main.py --input_file target_nodes_list.txt --data_path ./data/data.pkl --model_path saved-models/gcn.pt

Dataset

  • Cora citation network
  • Select the largest connected components of the graph and use 10%/10% nodes for training/validation.
  • Stats:
#nodes #edges #features #classes
2485 10138 1433 7

TODO

  • attacker.py
    • implement your own attacker
  • main.py
    • setup your attacker

graph_attack's People

Contributors

hsmeiliang avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.