Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Pull request Compare This branch is even with bettyttytty:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.



This python code is for paper ''Thompson Sampling for a Fatigue-aware Online Recommendation System''. Please find details on

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.

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

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

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

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

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

  • This code calls the function from other py file. The current 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.

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

You can’t perform that action at this time.