Skip to main content

A package to learn about Reinforcement Learning

Project description

About LearnRL

LearnRL is a librairie to use and learn reinforcement learning.
Look how easy it is to use:
import learnrl as rl
from learnrl.environments import CrossesAndNoughtsEnv
from learnrl.agents import StandardAgent

env = CrossesAndNoughtsEnv()
agent1 = StandardAgent(state_space=env.observation_space, action_space=env.action_space)
agent2 = StandardAgent(state_space=env.observation_space, action_space=env.action_space)

agents = [agent1, agent2]
pg = rl.Playground(env, agents)
pg.fit(50000, verbose=1)

And boom you made two QLearning AIs training against each other on crosses and noughts !

Features

  • Build highly configurable classic reinforcement learning agents in few lines of code

  • Train your Agents on any Gym environments

  • Use this API to create your own agents and environments (even multiplayer!) with great compatibility

Installation

Install LearnRL by running:

pip install learnrl

Documentation

See the latest complete documentation for more details See the developpement documentation to see whats comming !

Contribute

Support

If you are having issues, please let me know at mathfederico@gmail.com

License

The project is licensed under the GNU LGPLv3 license.
See LICENCE, COPYING and COPYING.LESSER for more details.

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

learnrl-0.2.0.tar.gz (34.3 kB view hashes)

Uploaded Source

Built Distribution

learnrl-0.2.0-py3-none-any.whl (74.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page