This package should serve as a collection of tools to do RL in general and in particular bayesian RL.
- estimators
- agents
- environments
- simulations & visualisation
pip3 install barl
git clone https://github.com/ai-nikolai/barl
cd barl
pip3 install -e .
cd barl
pytest
cd barl
cd experiments
python3 experiments_mab.py
import barl
env = barl.environments.MultiArmedBandit(arms=4)
agent1 = barl.agents.baselines.RandomActionsSampler(numActions=4)
total, arlist, _ = barl.simulations.run_state_less_agent_and_env( environment=env, agent=agent1, N=100)
barl.utils.plotting.plot_reward_over_time_from_ar(arlist)