Giter Site home page Giter Site logo

cs224w-project's Introduction

CS224w

Project repo for Stanford CS224w: Detecting hateful users on Twitter

Preprocess data for pytorch geometric (GNN)

Make sure in the data folder there are users.edges, users_hate_all.content, users_hate_glove.content To create the preprocessed dataset files, create an input folder in data/ then run:

cd code
python data_preprocess_gnn.py --feature glove
python data_preprocess_gnn.py --feature all

In data/input/, there will be two preprocessed dataset files

Run GraphSage/GAT on the retweet graph

cd code
python fs_graphsage.py #runs with all feature vector & graphsage model
python fs_graphsage.py --feature glove #defaults to all features, 320 dimensions
python fs_graphsage.py --model_type gat #defaults to sage, reproduce graphsage experiment

Run LoNGAE on the retweet graph

cd code
git clone https://github.com/vuptran/graph-representation-learning.git
python data_preprocess_LoNGAE.py #get preprocessed data
#Customize model training and metric evaluation
python train_multitask_lpnc.py hateful <gpu_id>

Dataset and original files

Primary dataset: https://www.kaggle.com/manoelribeiro/hateful-users-on-twitter
Dataset owners' analysis repo: https://github.com/manoelhortaribeiro/HatefulUsersTwitter
Their GraphSAGE embedding repo: https://github.com/manoelhortaribeiro/GraphSageHatefulUsers

Their papers:

"Like Sheep Among Wolves":  Characterizing Hateful Users on Twitter
Manoel Horta Ribeiro, Pedro H Calais, Yuri A Santos,  Virgílio AF Almeida, Wagner Meira Jr
MIS2 workshop at WSDM'18

Characterizing and Detecting Hateful Users on Twitter
Manoel Horta Ribeiro, Pedro H Calais, Yuri A Santos,  Virgílio AF Almeida, Wagner Meira Jr
ICWSM'18

GraphMix: Regularized Training of Graph Neural Networks for Semi-Supervised Learning
Verma, V., Qu, M., Lamb, A., Bengio, Y., Kannala, J., & Tang, J. (2019). 

Learning to make predictions on graphs with autoencoders
Tran, P. V. (2018, October). 
In 2018 IEEE 5th International Conference on Data Science and Advanced Analytics (DSAA) (pp. 237-245). IEEE.

cs224w-project's People

Contributors

baidi96 avatar yipenghe avatar

Watchers

 avatar  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.