{"id":22506617,"url":"https://github.com/a-poor/bayesian-bandit","last_synced_at":"2026-05-02T13:34:17.066Z","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":1,"default_branch":"master","last_synced_at":"2026-01-22T16:34:15.770Z","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,"purl":"pkg:github/a-poor/bayesian-bandit","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","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-poor%2Fbayesian-bandit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32536578,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-02T12:25:33.646Z","status":"ssl_error","status_checked_at":"2026-05-02T12:24:51.733Z","response_time":132,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2026-05-02T13:34:17.034Z","avatar_url":"https://github.com/a-poor.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"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","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"}