Giter Site home page Giter Site logo

saltyyyyyyy / thompson-sampling-for-a-fatigue-aware-online-recommendation-system Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yunjuanwang/thompson-sampling-for-a-fatigue-aware-online-recommendation-system

1.0 0.0 0.0 40.01 MB

Python 100.00%

thompson-sampling-for-a-fatigue-aware-online-recommendation-system's Introduction

Thompson-Sampling-for-a-Fatigue-aware-Online-Recommendation-System

Introduction

This python code is for paper ''Thompson Sampling for a Fatigue-aware Online Recommendation System''. Please find details on https://arxiv.org/abs/1901.07734

This code implements algorithm 1, 2, 3. It is used for performing the experiments in Section 7.

The result file and all the charts are the result when we run the code.

  • Based_define_function.py: This code provide the basic function used in the paper, i.e. calculate the order of messages, the users feedback, the total payoff, etc.

  • Thompsonbasedpy.py: This code provides function thompson_base that we implement algorithm 1.

  • TSgaussian.py: This code provides function TSgaussian_base that we implement algorithm 1.

  • UCBV.py: This code provides function ucbv that we implement algorithm 3.

  • ucbbasedpy.py: This code provides function ucb_base that we implement algorithm in Cao and Sun (2019).

  • experiment.py: This code calls the function from other py file. The current experiment.py file is that we call algorithm 2 to do 10 times experiments using different R alpha and beta. We record the result in txt file and pickle down in result file.

  • testfile.py: This code plots the chart of the result of each algorithm in the result file. The current testfile.py file is that we plot the result chart of algorithm 1 when u is generated from [0, 0.5].

thompson-sampling-for-a-fatigue-aware-online-recommendation-system's People

Contributors

yunjuanwang avatar

Stargazers

 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.