Code Monkey home page Code Monkey logo

rf-gnn's Introduction

RF-GNN

RF-GNN: Random Forest Boosted Graph Neural Network for Social Bot Detection

Environment Settings

  • python == 3.7
  • torch == 1.8.1+cu102
  • numpy == 1.21.6
  • scipy == 1.7.2
  • pandas == 1.3.5
  • scikit-learn == 1.0.2
  • torch-cluster == 1.5.9
  • torch-geometric == 2.0.4
  • torch-scatter == 2.0.8
  • torch-sparse == 0.6.12
  • torch-spline-conv == 1.2.1

Usage

RF-GNN

  • dataset: including [MGTAB, Twibot20, Cresci15].
  • model: including ['GCN', 'GAT', 'SAGE', 'RGCN', 'SGC'].
  • labelrate: parameter for labelrate. (default = 0.1)

e.g.

#run RF-GCN on MGTAB (label rate 0.05)
python RF-GNN.py -dataset MGTAB -model GCN --labelrate 0.05
#run RF-GAR on Twibot-20
python RF-GNN.py -dataset Twibot20 -model GAT -smote True

RF-GNN-E and GNN

  • dataset: including [MGTAB, Twibot20, Cresci15].
  • model: including ['GCN', 'GAT', 'SAGE', 'RGCN', 'SGC'].
  • ensemble: including [True, False].
  • labelrate: parameter for labelrate. (default = 0.1)

e.g.

#run RF-GCN-E on MGTAB
python GNN.py -dataset MGTAB -model GCN -ensemble True
#run GCN on MGTAB
python GNN.py -dataset Cresci15 -model GCN -ensemble False

Dataset

For TwiBot-20, please visit the Twibot-20 github repository. For MGTAB please visit the MGTAB github repository. For Cresci-15 please visit the Twibot-20 github repository.

We also offer the processed data set: Cresci-15, MGTAB, Twibot-20.

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.