Skip to main content

A discrete environment build using openai/gym with the purpose to be used by Reinforcement learning algorithms.

Project description

Gym-Rat-Runner

Introduction

Gym Rat Runner is an open-source environment implemented over OpenAI Gym.It is a 2-D discrete environment intended for Reinforcement learning applications with collision treatments. For now, the package has two distinct environments; the open and the maze environments.

Agent Rat Agent

The agent is represented by a friendly rat with the objective of catching the cheese. Which will have eight move action options.

Target Target

The cheese won't move and will always be visible to the Agent.

Hunter Hunter

The Hunter is represented by a cat and will move differently depending on the environment.

Installation

Requirements


pandas >= 1.4.1
numpy >= 1.20.3
gym >= 0.23.0
pygame >= 2.1.2
opencv-python

pip

To install the package into your machine you can use the code bellow

  
pip install gym-rat-runner  

Environments

Open Environment


Open Environment

The open environment has 10 by 10 spaces and the cat is sleeping and won't move independently what the rat does.

Maze Environment


Maze Environment

The maze environment has 16 by 32 spaces based on the Bank Heist from Atari. Like the police in Bank Heist, the hunter won't be able to move back but it will have two options of movement:

  1. The Agent is outside the field vision of the hunter
  • The cat will move randomly by the maze.
  1. The agent is inside the field vision of the hunter.
  • The cat will start to run after the rat and will move twice the movement of the agent.

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

gym_rat_runner-0.1.6.tar.gz (244.9 kB view details)

Uploaded Source

Built Distribution

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

gym_rat_runner-0.1.6-py3-none-any.whl (246.4 kB view details)

Uploaded Python 3

File details

Details for the file gym_rat_runner-0.1.6.tar.gz.

File metadata

  • Download URL: gym_rat_runner-0.1.6.tar.gz
  • Upload date:
  • Size: 244.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.12

File hashes

Hashes for gym_rat_runner-0.1.6.tar.gz
Algorithm Hash digest
SHA256 af82b10fcd8ba557565e3c932bf9259f76041f03a1f465e7466aa2e674967c2f
MD5 add7d54b5a5f448f45e09324225a9dbd
BLAKE2b-256 313f2d7d456a08060a310260f8ee99af967ba5f5a3eafbe7226a61f7b4c06359

See more details on using hashes here.

File details

Details for the file gym_rat_runner-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: gym_rat_runner-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 246.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.12

File hashes

Hashes for gym_rat_runner-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 172e7150af0d83dc39168e61721fd301a9411ecf667dfbf00545872eb84adad1
MD5 7adc976d322716d398b3c2c9807c5e87
BLAKE2b-256 db5c29a59f1b3febbf193777edeae21c4476b7762839349223170fabdc498031

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