Skip to main content

Bayesian Approximate Reinforcement Learning (BARL)

Project description

BARL - Bayesian Approximate Reinforcement Learning

This package should serve as a collection of tools to do RL in general and in particular bayesian RL.

The Main Features(Jul 2019):

  1. estimators
  2. agents
  3. environments
  4. simulations & visualisation

Installation:

PIP:

pip3 install barl

Github:

git clone https://github.com/ai-nikolai/barl
cd barl
pip3 install -e .

Usage:

Testing

cd barl
pytest

Experiments:

cd barl
cd experiments
python3 experiments_mab.py

Scripts:

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)

Copyright (C) - Nikolai Rozanov 2019-Present

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

barl-0.0.0.4.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

barl-0.0.0.4-py3-none-any.whl (14.5 kB view details)

Uploaded Python 3

File details

Details for the file barl-0.0.0.4.tar.gz.

File metadata

  • Download URL: barl-0.0.0.4.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.5

File hashes

Hashes for barl-0.0.0.4.tar.gz
Algorithm Hash digest
SHA256 8ebdd40be04b2cf1545e432326df5a606228a52301a745d4e8e1d68c1e6cb192
MD5 7081a606b2e3b8cdbb0edb7792655482
BLAKE2b-256 bea98b09d9c29288de6e6b38f77f8fc7afbe81d6eafe1575647d12fd67795d0e

See more details on using hashes here.

File details

Details for the file barl-0.0.0.4-py3-none-any.whl.

File metadata

  • Download URL: barl-0.0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 14.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.5

File hashes

Hashes for barl-0.0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 1385e2c0a538e86f80d24cd9b858ac53897682209348dd6d1d7d15b3a987b42a
MD5 cf3c3c4ccc77b9e744ac6bf869533cc6
BLAKE2b-256 90c30f312d11e624f5ff557531bdccc2d384e82d96989a72cbbc387121ed9fa3

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