A package to learn about Reinforcement Learning
import learnrl as rl from learnrl.environments import CrossesAndNoughtsEnv from learnrl.agents import TableAgent env = CrossesAndNoughtsEnv() agent1 = TableAgent(state_space=env.observation_space, action_space=env.action_space) agent2 = TableAgent(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 !
- 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
Install LearnRL by running:
pip install learnrl
See the latest complete documentation for more details
If you are having issues, please let me know at email@example.com
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size learnrl-0.1.1-py3-none-any.whl (54.2 kB)||File type Wheel||Python version py3||Upload date||Hashes View|
|Filename, size learnrl-0.1.1.tar.gz (21.8 kB)||File type Source||Python version None||Upload date||Hashes View|