{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/adapting-multi-armed-bandits-policies-to","title":"Adapting multi-armed bandits policies to contextual bandits scenarios","arxiv_id":"1811.04383","date":"2018-11-11","proceeding":null,"authors":["David Cortes"],"abstract":"This work explores adaptations of successful multi-armed bandits policies to the online contextual bandits scenario with binary rewards using binary classification algorithms such as logistic regression as black-box oracles. Some of these adaptations are achieved through bootstrapping or approximate bootstrapping, while others rely on other forms of randomness, resulting in more scalable approaches than previous works, and the ability to work with any type of classification algorithm. In particular, the Adaptive-Greedy algorithm shows a lot of promise, in many cases achieving better performance than upper confidence bound and Thompson sampling strategies, at the expense of more hyperparameters to tune.","url_abs":"https://arxiv.org/abs/1811.04383v2","url_pdf":"https://arxiv.org/pdf/1811.04383v2.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"adapting-multi-armed-bandits-policies-to","repo_url":"https://github.com/david-cortes/contextualbandits","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok","spdx":"BSD-2-Clause"}},{"paper_slug":"adapting-multi-armed-bandits-policies-to","repo_url":"https://github.com/renan-cunha/Bandits","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"binary-classification","task_name":"Binary Classification"},{"task_slug":"classification-1","task_name":"Classification"},{"task_slug":"classification","task_name":"General Classification"},{"task_slug":"multi-armed-bandits","task_name":"Multi-Armed Bandits"},{"task_slug":"thompson-sampling","task_name":"Thompson Sampling"},{"task_slug":"regression-1","task_name":"regression"}],"methods":[{"method_slug":"logistic-regression","method_name":"Logistic Regression"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":null,"atlas_url":"https://app.syntology.ai/?focus=1811.04383","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"1811.04383"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/renan-cunha/Bandits","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/david-cortes/contextualbandits","reach":{"status":"ok","spdx":"BSD-2-Clause"}}],"summary":{"unverified":5},"by_repo_kind":{"official":{"samples":4,"ran":0,"repositories":1},"listed":{"samples":1,"ran":0,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"d830c2adb3371ac3","entry":"evaluateDoublyRobust","repo":"david-cortes/contextualbandits","repo_kind":"official","path":"contextualbandits/evaluation.py","file_url":"https://github.com/david-cortes/contextualbandits/blob/HEAD/contextualbandits/evaluation.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-2-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"d830c2adb3371ac3"}},{"code_sha256_prefix":"07890a7fc7228b85","entry":"evaluateFullyLabeled","repo":"david-cortes/contextualbandits","repo_kind":"official","path":"contextualbandits/evaluation.py","file_url":"https://github.com/david-cortes/contextualbandits/blob/HEAD/contextualbandits/evaluation.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-2-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"07890a7fc7228b85"}},{"code_sha256_prefix":"5b5e67176c481b88","entry":"evaluateRejectionSampling","repo":"david-cortes/contextualbandits","repo_kind":"official","path":"contextualbandits/evaluation.py","file_url":"https://github.com/david-cortes/contextualbandits/blob/HEAD/contextualbandits/evaluation.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-2-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"5b5e67176c481b88"}},{"code_sha256_prefix":"8acc46145dde8f6a","entry":"is_from_this_module","repo":"david-cortes/contextualbandits","repo_kind":"official","path":"contextualbandits/utils.py","file_url":"https://github.com/david-cortes/contextualbandits/blob/HEAD/contextualbandits/utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-2-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"8acc46145dde8f6a"}},{"code_sha256_prefix":"6a4d58feb5b351cf","entry":"parse_data","repo":"renan-cunha/Bandits","repo_kind":"listed","path":"src/contextual_bandits/Bibtex/parse_data.py","file_url":"https://github.com/renan-cunha/Bandits/blob/HEAD/src/contextual_bandits/Bibtex/parse_data.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"6a4d58feb5b351cf"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}