GithubHelp home page GithubHelp logo

mitao-cat / news-recommender-favors-liberal Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 10.21 MB

Code for paper submitted to Science Advance (under review)---News Recommender Favors Liberals: A Causal Framework for Algorithmic Bias

Jupyter Notebook 99.25% Python 0.74% Shell 0.01%

news-recommender-favors-liberal's Introduction

News-Recommender-Favors-Liberal

Here are data and codes for our paper submitted to Science Advances:

  • News Recommender Favors Liberals: A Causal Framework for Algorithmic Bias

Prepare the dataset

  1. Download the MIND dataset from https://msnews.github.io/.
  2. Unzip the files MINDlarge_train.zip and MINDlarge_dev.zip.
  3. Put the folders MINDlarge_train and MINDlarge_dev into data/mind.
  4. Run chmod 777 prepare_data.sh and ./prepare_data.sh in data/mind.

Run the codes

  1. Run chmod 777 run.sh and ./run.sh in code to get the effects used in the paper. For convinience, we have already prepared them in ./code/get_effect/result/mind.
  2. All the figures and results presented in our paper and SI can be reproduced by running the jupyter notebooks in ./code/figures. You can cancel comments with plt.savefig() and the corresponding figures will be automatedly saved in ./code/figures/figures.

Thanks for using our code!

news-recommender-favors-liberal's People

Contributors

mitao-cat 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.