Skip to main content

No project description provided

Project description

=============== MAB Solver ===============

About the Developer:

  • Name: Shreyas Sawant
  • College: Mukesh Patel School of Technology Management and Engineering
  • Department: Artificial Intelligence
  • Related Course: Reinforcement Learning

About the Library

The MAB solver or the Multi Agent Bandit problem solver consists of five main functions. Naturally it is meant to solve the MAB problem but it uses Pure Exploration, Pure exploitation, Fixed Exploration + Greedy Exploitation, Epsilon Greedy approach and finally Upper Confidence Bound (UCB). There are a handful of parameters which can be tweaked like time steps (t), number of arms (n), fixed time steps (tf) (used in Fixed Exploration + Greedy Exploitation), epsilon (eps) (used in Epsilon Greedy), constant (c) (used in UCB). The library handles the outputs randomly and for this version, there is no way of manipulating the input probabilities. But it can be expected in the future versions of the library.

Steps to use:

  • First install the PyMABSolver library using the pip command
  • Next initialise the MABSolver class by creating an instance
  • Important parameters:
    1. Time steps (t): An integer for number of iterations.
    2. Number of arms (n): An integer for number of Machines/Bandits to choose from.
    3. Fixed time steps (tf): [only while using Fixed Exploration + Greedy Exploitation] An integer for number of fixed exploration iterations
    4. epsilon (eps): [only while using Epsilon Greedy] A float number between 0 and 1 acting as a threshold for Exploring vs Exploiting
    5. c: [only while using UCB] A float number greater than 0 acting as a constant to determine whether to prioritise exploration or exploitation if c -> 0: then Exploitation is emphasized if c -> 1: then Exploration is emphasized
  • Next call the respective functions namely: exploration, exploitation, fixed_exploration_greedy_exploitation, epsilon_greedy, ucb
  • (Optional) Finally for visualisation the plot_comparison function can be called

For Referal code follow below GitHub link: https://github.com/Shreyswan/PyMABSolver.git

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pymabsolver-0.6.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

PyMABSolver-0.6-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file pymabsolver-0.6.tar.gz.

File metadata

  • Download URL: pymabsolver-0.6.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for pymabsolver-0.6.tar.gz
Algorithm Hash digest
SHA256 008ad962ffffe1f2a5586f27854f6583c5f812a02a233f0410fba63462360d1b
MD5 c90b33a3cb6fb71272ebcb7eecc136a3
BLAKE2b-256 7f47a5fb9e3580a19b24406b19b65ce23d8843cd347202e6340065619566ef48

See more details on using hashes here.

File details

Details for the file PyMABSolver-0.6-py3-none-any.whl.

File metadata

  • Download URL: PyMABSolver-0.6-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for PyMABSolver-0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 45b62108ce9d97cd870f14468f72d68ab8097bd128d20cf057b6d60722450e89
MD5 02b20f524d15c1fc6c191d9747926ddf
BLAKE2b-256 6b1a5cd84e2f2c7ffea08a7bbf9b6904b1f864a571de255c229beedc140f3a87

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page