Skip to content

In this project we trained personalized transformer models for news recommendation using adapters [similar to (IA)^3]. With layerwise relevancy propagation, we try to explain the recommendation to the user. Using a web interface and displaying word clouds, the user can be assigned to a “filter bubble”. This allows users to reflect on their behavior

Notifications You must be signed in to change notification settings

josh-oo/adapter-based-news-recommender

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

header.png

04 Continous User Feedback

Streamlit App

Install pip environment via pip install -r requirements.txt

Run with streamlit run badpun.py from root directory. When running two instances, specify port by streamlit run badpun.py --server.port 8051. For one high clustering and one low clustering instance run

$ streamlit run badpun.py --server.port 8051 -- high
$ streamlit run badpun.py --server.port 8052 -- low

Structure

The folder src/ contains all files code files required for the Application. experiments/ contains jupyter notebooks that were used to determine parameters and conduct experiments. In the folder data/ lies both example data for training of the model and for running the application. The folder submission/ contains our final report pdf file.

Environment

The file 'config.ini' contains all constants used throughout the system. In order to avoid spread of information, best add new constants to this file, as well as parameterization of methods etc. Usage:

import configparser
config = configparser.ConfigParser()
config.read('config.ini')
config['DATA']['TestUserEmbeddingPath']

Branches

On the main branch, the wordclouds are computed using the simple attentions due to time constraints. For the LRP implementation please switch to the high-dim-and-lrp branch. `

About

In this project we trained personalized transformer models for news recommendation using adapters [similar to (IA)^3]. With layerwise relevancy propagation, we try to explain the recommendation to the user. Using a web interface and displaying word clouds, the user can be assigned to a “filter bubble”. This allows users to reflect on their behavior

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published