Code Monkey home page Code Monkey logo

userrecsimulation's Introduction

UserRec

This repository contains the source code for the paper titled "Unveiling the Relationship between News Recommendation Algorithms and Media Bias: A Simulation-based Analysis of the Evolution of Bias Prevalence", which aims to direct investigate the relationship between news recommendation algorithms and media bias. We designed a news recommendation simulation framework to evaluate the impact of media bias on different recommendation algorithms under different user choice strategies. The project comprises four folders: Articles, Users, Recommenders, and Observers.

Articles

We provide the news dataset modified on the SemEval-2019 Task 4 Hyperpartisan Dataset under the articles directory. The datasets used in the experiments are located in the articles/processed_data directory.

Users

The code for generating synthetic users is included under the user's directory. The user groups tested in the experiments are in the users/synthetic_user_groups directory.

Recommenders

The NAML, NPA, and NRMS algorithms use the official implementation of Microsoft Recommenders. The FIM and PLM-empowered algorithms were re-implemented using the PyTorch framework.

Observers

This section consists of simulation, scripts, analyzer, and results. The simulation folder implements the feedback loop interaction between users, news recommendation algorithms, and candidate news sets. The user choice strategies reported in the paper are implemented in the observer/simulation/simulate_feedback.py file. The scripts folder helps to connect the observation process. The analyzer folder analyzes the results of the evolution of bias prevalence in users' browsing histories, and the analyzed results are recorded in the result folder.

Feel free to contact us if you have any questions or need support.:)

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.