Code Monkey home page Code Monkey logo

curb's Introduction

Curb

This is a repository containing code for the paper:

J. Kim, B. Tabibian, A. Oh, B. Schölkopf, M. Gomez-Rodriguez. Leveraging the Crowd to Detect and Reduce the Spread of Fake News and Misinformation. In Proceedings of the 11th ACM International Conference on Web Search and Data Mining (WSDM), 2018.

Pre-requisites

This code is developed under Python 3 and the following packages are required for executing the code: numpy, scipy, matplotlib, pickle, seaborn

Code structure

The repository contains the code for the execution of the model (Curb) and several baseline methods. Also, it contains Jupyter notebook files for generating the figures in the paper and the user exposure data for the Twitter and Weibo datasets used in the paper.

  • code directory contains the code for executing the model and the baselines.
    • generate_results.py : Given the user exposure data in the Twitter and Weibo directories, it runs the models (Curb and the baseline methods) and saves the results in pkl files.
    • curb.py : API for Curb and the Oracle baseline.
    • flagratio.py : API for the Flag Ratio baseline.
    • baseline.py : API for the Exposure baseline.
  • notebook contains Jupyter notebook files for generating the figures in the paper. These notebooks use the results generated by the scripts in the code directory.
  • twitter and weibo
    • reshare_data contains user reshare logs for each story. For each txt file, each line consists of user id and timestamp of the reshare event, separated by tab.
    • results contains pre-computed results for Curb, the Oracle baseline, the Flag Ratio baseline and the Exposure baseline.

Raw data

We use data from Twitter and Weibo, which includes users' networks and sharing logs, stories, and labels for the stories (whether the story is fake or genuine). The data was released together with the following paper:

S. Kwon, M. Cha, and K Jung. 2017. Rumor detection over varying time windows. PLOS ONE 12, 1 (2017), e0168344.

and it can be downloaded from the following link:

https://sites.google.com/site/iswgao/

Questions

For further inquiries, please contact Jooyeon Kim ([email protected])

curb's People

Contributors

btabibian avatar jyscardioid avatar manuelgr 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.