thompson

Thompson is Python package to evaluate the multi-armed bandit problem. In addition to thompson, Upper Confidence Bound (UCB) algorithm, and randomized results are also implemented.

https://github.com/erdogant/thompson

Science Score: 54.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
    Links to: zenodo.org
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (13.1%) to scientific vocabulary

Keywords

bayesian genetic-algorithm machine-learning multi-armed-bandit python reinforcement-learning thompson thompson-algorithm ucb
Last synced: 6 months ago · JSON representation ·

Repository

Thompson is Python package to evaluate the multi-armed bandit problem. In addition to thompson, Upper Confidence Bound (UCB) algorithm, and randomized results are also implemented.

Basic Info
Statistics
  • Stars: 2
  • Watchers: 1
  • Forks: 2
  • Open Issues: 0
  • Releases: 3
Topics
bayesian genetic-algorithm machine-learning multi-armed-bandit python reinforcement-learning thompson thompson-algorithm ucb
Created about 6 years ago · Last pushed 10 months ago
Metadata Files
Readme Funding License Citation

README.md

Multi-armed bandit

Python PyPI Version License Downloads Downloads DOI Sphinx <!---BuyMeCoffee--> <!---Coffee-->

  • Thompson is Python package to evaluate the multi-armed bandit problem. In addition to thompson, Upper Confidence Bound (UCB) algorithm, and randomized results are also implemented. The thompson package implements three algorithms for solving the multi-armed bandit problem:
  1. Thompson Sampling: A Bayesian approach that maintains probability distributions over the expected rewards of each arm and samples from these distributions to select the next arm to pull.

  2. Upper Confidence Bound (UCB): A deterministic algorithm that selects arms based on their estimated rewards and the uncertainty in those estimates.

  3. Randomized Sampling: A baseline method that randomly selects arms without considering their past performance.

The multi-armed bandit problem is a classic reinforcement learning problem that exemplifies the exploration-exploitation tradeoff dilemma. In this problem, a fixed limited set of resources must be allocated between competing choices in a way that maximizes expected gain, when each choice's properties are only partially known at the time of allocation.

⭐️ Star this repo if you like it ⭐️

Install thompson from PyPI

bash pip install thompson

Import thompson package

python import thompson as th

Documentation pages

On the documentation pages you can find detailed information about the working of the thompson with examples.


Examples


References

  • https://en.wikipedia.org/wiki/Multi-armed_bandit

Owner

  • Name: Erdogan
  • Login: erdogant
  • Kind: user
  • Location: Den Haag

Machine Learning | Statistics | Bayesian | D3js | Visualizations

Citation (CITATION.cff)

# YAML 1.2
---
authors: 
  -
    family-names: Taskesen
    given-names: Erdogan
    orcid: "https://orcid.org/0000-0002-3430-9618"
cff-version: "1.1.0"
date-released: 2020-01-03
keywords: 
  - "python"
  - "bayesian"
  - "reinforcement-learning"
  - "genetic-algorithm"
  - "ucb"
  - "multi-armed-bandit"
  - "thompson"
  - "thompson=algorithm"
license: "MIT"
message: "If you use this software, please cite it using these metadata."
repository-code: "https://erdogant.github.io/thompson"
title: "The multi-armed bandit by Thompson Sampling, UCB-Upper confidence Bound, and randomized sampling."
version: "1.0.0"
...

GitHub Events

Total
  • Push event: 9
  • Create event: 1
Last Year
  • Push event: 9
  • Create event: 1

Committers

Last synced: about 2 years ago

All Time
  • Total Commits: 45
  • Total Committers: 2
  • Avg Commits per committer: 22.5
  • Development Distribution Score (DDS): 0.467
Past Year
  • Commits: 2
  • Committers: 1
  • Avg Commits per committer: 2.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Erdogan Taskesen 3****t 24
erdogant e****t@g****m 21

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 72 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 1
  • Total versions: 3
  • Total maintainers: 1
pypi.org: thompson

The multi-armed bandit by Thompson Sampling, UCB-Upper confidence Bound, and randomized sampling.

  • Homepage: https://erdogant.github.io/thompson
  • Documentation: https://thompson.readthedocs.io/
  • License: MIT License Copyright (c) 2020 Erdogan Taskesen Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  • Latest release: 1.1.0
    published 10 months ago
  • Versions: 3
  • Dependent Packages: 0
  • Dependent Repositories: 1
  • Downloads: 72 Last month
Rankings
Dependent packages count: 10.0%
Forks count: 19.1%
Average: 19.9%
Downloads: 20.9%
Dependent repos count: 21.7%
Stargazers count: 27.8%
Maintainers (1)
Last synced: 6 months ago

Dependencies

docs/figs/source/requirements.txt pypi
  • pipinstallsphinx_rtd_theme *
docs/source/requirements.txt pypi
  • pipinstallsphinx_rtd_theme *
requirements.txt pypi
  • pipinstallmatplotlibnumpypandasseaborn *
setup.py pypi
  • matplotlib *
  • numpy *
  • pandas *