Giter Club home page Giter Club logo

hgatrd's Introduction

HGATRD

The implementation of our IJCNN 2020 paper "Heterogeneous Graph Attention Networks for Early Detection of Rumors on Twitter"

Requirements

python 3.6.6
numpy==1.17.2
scipy==1.3.1
pytorch==1.1.0
scikit-learn==0.21.3

How to use

Dataset

The main directory contains the directories of two Twitter datasets: twitter15 and twitter16. In each directory, there are:
ind.twitter1*.label files: the labels of all nodes in the tweet-word subgraph.
ind.twitter1*.features_index files: the index of words that nodes in the tweet-word subgraph contained.
ind.twitter1*.adj files: the weight adjacency matrix of the tweet-word subgraph.
ind.twitter1*.train files: the index of the training set in the tweet-word subgraph.
ind.twitter1*.dev files: the index of the validation set in the tweet-word subgraph.
ind.twitter1*.test files: the index of the testing set in the tweet-word subgraph.
ind.twitter1*.user.tweet.adj files: the weight adjacency matrix of the tweet-user subgraph.
ind.twitter1*.user.tweet.train files: the index of the training set in the tweet-user subgraph.
ind.twitter1*.user.tweet.dev files: the index of the validation set in the tweet-user subgraph.
ind.twitter1*.user.tweet.test files: the index of the testing set in the tweet-user subgraph.
ind.twitter1*.user.tweet.adj.tc* files: the weight adjacency matrix of the tweet-user subgraph which simulated the task of early detection by controlling the received tweets.
ind.twitter1*.user.tweet.adj.et* files: the weight adjacency matrix of the tweet-user subgraph which simulated the task of early detection by controlling the elapsed time.
These datasets are preprocessed according to our requirement and original datasets can be available at here

Training & Testing

sh run.sh 0 twitter15[twitter16]

Citation

If you find the code is useful for your research, please cite this paper:

@article{huang2020heterogeneous,
  title={Heterogeneous Graph Attention Networks for Early Detection of Rumors on Twitter},
  author={Huang, Qi and Yu, Junshuai and Wu, Jia and Wang, Bin},
  journal={arXiv preprint arXiv:2006.05866},
  year={2020}
}

hgatrd's People

Contributors

201518018629031 avatar

Watchers

James Cloos 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.