Installation#
statrl requires Python 3.9+. It depends on numpy, gymnasium, joblib,
and matplotlib (installed automatically).
From source#
The package is not yet on PyPI. Clone the repository and install it:
git clone https://github.com/StatisticalRL/statrl.git
cd statrl
pip install .
For development, install in editable mode so code changes take effect immediately:
pip install -e .
Verify the installation#
python -c "import statrl.settings.bandits.stochastic.anytime.agents.IMED as m; print(m.IMED)"
Building the documentation#
pip install -r docs/requirements.txt
sphinx-build -b html docs/source docs/_build/html
# open docs/_build/html/index.html