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 four main functions. Naturally it is meant to solve the MAB problem but it uses Pure Exploration, Pure exploitation, Fixed Exploration + Greedy Exploitation and finally Epsilon Greedy approach. 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) and epsilon (eps) (used in Epsilon Greedy). 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
  • Next call erspective functions namely: exploration, exploitation, fixed_exploration_greedy_exploitation, epsilon_greedy
  • (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.3.tar.gz (3.3 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.3-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file PyMABSolver-0.3.tar.gz.

File metadata

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

File hashes

Hashes for PyMABSolver-0.3.tar.gz
Algorithm Hash digest
SHA256 57195dd87fe1ae6886c483b2af36ef0498e13a1b56d5b3a348d776931814ab78
MD5 597df671efb614ce8d0e59909b09a791
BLAKE2b-256 f5d6e7c4b81daed1bbd137d5ed0ab064743dcc04cb5d9c90a66c485d63bb1d7b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMABSolver-0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.6 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0fb8c31cf3ac631b92dff343305e50af5f9d58e9f79d14fcbfbbb52bad4e3154
MD5 ed71109e3c643bea01da384a84cdb9ba
BLAKE2b-256 628fe9af30977d8e7c84f94a91e325285aab9a3d9ab1f16e03884b77463b6e81

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