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:
- Time steps (t): An integer for number of iterations.
- Number of arms (n): An integer for number of Machines/Bandits to choose from.
- Fixed time steps (tf): [only while using Fixed Exploration + Greedy Exploitation] An integer for number of fixed exploration iterations
- epsilon (eps): [only while using Epsilon Greedy] A float number between 0 and 1 acting as a threshold for Exploring vs Exploiting
- 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pymabsolver-0.7.tar.gz.
File metadata
- Download URL: pymabsolver-0.7.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
148fc101442c7c519b6ed8548d626fe2e4237b9e753315f20a38ffcf2fd69959
|
|
| MD5 |
4acb2f97b3df924e1d9f4d14a7044324
|
|
| BLAKE2b-256 |
c1ea081a7b0349f4f898b8d84e8a5daf02fced1b4f8c68fc36a70339318af87e
|
File details
Details for the file pymabsolver-0.7-py3-none-any.whl.
File metadata
- Download URL: pymabsolver-0.7-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae35591e9574843b2486ac29660b0f003c1b913475cb74f11b3d4f5b509a9763
|
|
| MD5 |
05b08e9d0d15ee3947ca48f16dbdeaaf
|
|
| BLAKE2b-256 |
b20f2862b4cc4b5714c7a01a640103cd3bbf8c8bfba3cc17a74a8f100bbbc23f
|