How jerwingubat/thompsonsamplingdemo works
This repository appears to be a collection of Thompson-sampling demonstrations, including Flask applications and standalone interactive and accuracy experiments. The likely user workflow is to open a demo, run or observe bandit selections, and inspect the resulting output. The source index confirms these modules use numerical, statistical, and plotting libraries, but no README or application excerpts show their routes, event handlers, or cross-module calls; relationships between repository components are therefore left unasserted.
Main entry points: app.py Flask demo · tsa_app.py TSA Flask demo · tsademo.py TSA demo · thompson_sampling.py Thompson sampling
Components 9
Web demos
- Flask demo
app.py - TSA Flask demo
tsa_app.py - TSA demo
tsademo.py
Interactive demos
- Thompson sampling
interactive_tsa/thompson_sampling.py - Sampling variant
interactive_tsa/thompson_sampling_two.py - Sampling test demo
interactive_tsa/thompson_sampling_testing.py
Experiments
- Accuracy demo
accuracy_testing/thompson_demo.py - Accuracy variant
accuracy_testing/thompson_demo_two.py
Other components
- User
Connections 8
- User → Flask demo: uses
- User → TSA Flask demo: uses
- User → TSA demo: uses
- User → Thompson sampling: runs
- User → Sampling variant: runs
- User → Sampling test demo: runs
- User → Accuracy demo: runs
- User → Accuracy variant: runs