Skip to main content
Ctrl+K

bayesianbandits

  • Getting Started
  • How-To Guides
  • Explanation
  • Mathematical Reference
  • Examples
    • API Reference
    • Changelog
  • GitHub
  • Getting Started
  • How-To Guides
  • Explanation
  • Mathematical Reference
  • Examples
  • API Reference
  • Changelog
  • GitHub

Section Navigation

  • Integrating with sklearn Transformers
  • Choosing and Tuning a Decay Rate
  • Writing Custom Reward Functions
  • Handling Delayed Rewards
  • Deploying to Production
  • Working with Sparse Features
  • How-To Guides

How-To Guides#

Task-oriented guides with code snippets for common operations.

  • Integrating with sklearn Transformers
    • Accept JSON input
    • Accept DataFrame input
    • Scale numeric features
    • Preprocess enriched features in a shared-learner bandit
    • Access pipeline internals
  • Choosing and Tuning a Decay Rate
    • Start with no decay
    • Decouple decay from updates
    • Choose a decay rate
    • Avoid over-decay
  • Writing Custom Reward Functions
    • Map binary outcomes to profit
    • Use context in the reward function
    • Express non-linear utility
    • Batch reward functions for shared-learner bandits
    • If something goes wrong
  • Handling Delayed Rewards
    • The basic pattern
    • Batch updates for the same arm
    • Multiple pulls before any update
    • Interaction with decay
    • Non-contextual agents
    • If something goes wrong
  • Deploying to Production
    • Serialize with joblib
    • Reseed the RNG after loading
    • Add and remove arms at runtime
  • Working with Sparse Features
    • Enable sparse mode
    • Install CHOLMOD for production workloads

previous

Quick Start

next

Integrating with sklearn Transformers

This Page

  • Show Source

© Copyright 2023, Rishi Kulkarni.

Created using Sphinx 7.3.7.

Built with the PyData Sphinx Theme 0.16.1.