{"id":22506617,"url":"https://github.com/a-poor/bayesian-bandit","last_synced_at":"2025-03-27T23:41:23.584Z","repository":{"id":104407298,"uuid":"294177531","full_name":"a-poor/bayesian-bandit","owner":"a-poor","description":"Modeling a 1-armed bandit with pystan.","archived":false,"fork":false,"pushed_at":"2020-09-09T21:38:15.000Z","size":78,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-26T06:35:57.324Z","etag":null,"topics":["arviz","bayes","multi-armed-bandit","pystan","python"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/a-poor.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-09-09T17:06:26.000Z","updated_at":"2020-09-09T21:38:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"88e54d26-ad13-4501-b20f-7d6cb87bf173","html_url":"https://github.com/a-poor/bayesian-bandit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-poor%2Fbayesian-bandit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-poor%2Fbayesian-bandit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-poor%2Fbayesian-bandit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-poor%2Fbayesian-bandit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/a-poor","download_url":"https://codeload.github.com/a-poor/bayesian-bandit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245944062,"owners_count":20697948,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["arviz","bayes","multi-armed-bandit","pystan","python"],"created_at":"2024-12-07T00:44:42.726Z","updated_at":"2025-03-27T23:41:23.555Z","avatar_url":"https://github.com/a-poor.png","language":"Jupyter Notebook","readme":"# bayesian-bandit\r\n\r\n_created by Austin Poor_\r\n\r\n[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/a-poor/bayesian-bandit/master?filepath=bayes-bandit.ipynb\u0026urlpath=lab)\r\n[![NBViewer](https://img.shields.io/badge/render-nbviewer-orange)](https://nbviewer.jupyter.org/github/a-poor/bayesian-bandit/blob/master/bayes-bandit.ipynb#)\r\n\r\nUsing [`pystan`](https://mc-stan.org/) to approach a simplified version of the [multi-armed bandit problem](https://en.wikipedia.org/wiki/Multi-armed_bandit), where the goal is to use bayesian modeling to predict the probability of success for an unknown process.\r\n\r\nThe notebook [bayes-bandit.ipynb](./bayes-bandit.ipynb) has the analysis code and the file [bandit.py](./bandit.py) has a 1-armed-bandit class used by the notebook.\r\n\r\n\r\n## Run the Code\r\n\r\n### Binder\r\n\r\nTo run the notebook using Binder, click the badge above or use [this link](https://mybinder.org/v2/gh/a-poor/bayesian-bandit/master?filepath=bayes-bandit.ipynb\u0026urlpath=lab). \r\n\r\n### Docker\r\n\r\nThere's an included [docker-compose file](./docker-compose.yml), for running the notebook in a container, which can be run with the command:\r\n\r\n```bash\r\n$ docker-compose up\r\n```\r\n\r\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa-poor%2Fbayesian-bandit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fa-poor%2Fbayesian-bandit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa-poor%2Fbayesian-bandit/lists"}