The library requires Python 3.6+. The
requirements.txt lists the necessary
Alternatively, you can build a wheel package on your platform from scratch using the source code:
git clone https://github.com/fidelity/mabwiser.git cd mabwiser pip install setuptools wheel # if wheel is not installed python setup.py sdist bdist_wheel pip install dist/mabwiser-X.X.X-py3-none-any.whl
Test Your Setup¶
To confirm that cloning was successful, run the tests included in the project.
All tests should pass.
git clone https://github.com/fidelity/mabwiser.git cd mabwiser python -m unittest discover tests
To confirm that installation was successful, try importing MABWiser in a Python shell or notebook.
from mabwiser.mab import MAB, LearningPolicy, NeighborhoodPolicy
For examples of how to use the library, refer to Usage Examples.
Upgrade the Library¶
To upgrade to the latest version of the library, run pip install –upgrade mabwiser.
If you are a custom build:
git pull origin master in the repo folder
2. run python setup.py sdist bdist_wheel
pip install --upgrade --no-cache-dir dist/mabwiser-X.X.X-py3-none-any.whl.