Skip to main content

This package provides an environment to practice different types of reingorcement learning models.

Project description

pyrace

This library provides a flexible environment to practice different Reinforcment learning models.

Import

from pyrace import Env

Creat an environment

env = Env()

Env class

The methods of this class are pretty similar to the environments provided by the gym library.
render : print an image of the current state of the environment. please make sure to turn the backend of matplotlib to auto (%matplotlib Auto)
reset : reset the environment and output tu initial state.
step : takes an action as input. An action is an array, the size and types in this array are defined by the environment's action space.This method outputs the new state.
load : Input the name of a map and it reset the environment with this new map loaded. Currently only one map is ready (map_1).So, this method is not that useful currently.
sample_action : no input, it output a random sample of the current environement's action space.
get_model_info : print the current environment's metadata. This metadata gives a description of the action space and the observation space.
get_model_list : gives the list of the names of the different available models.
get_map_list : gives the list of the names of the maps available.

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

pyrace-0.0.14.tar.gz (242.2 kB view details)

Uploaded Source

Built Distribution

pyrace-0.0.14-py3-none-any.whl (244.4 kB view details)

Uploaded Python 3

File details

Details for the file pyrace-0.0.14.tar.gz.

File metadata

  • Download URL: pyrace-0.0.14.tar.gz
  • Upload date:
  • Size: 242.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.3

File hashes

Hashes for pyrace-0.0.14.tar.gz
Algorithm Hash digest
SHA256 552a3bab32446ab6bb43419cd993716bbda12ccc2ebf93c82de0f0a857ccb0fa
MD5 8b115d48405a997311b944e9318eff64
BLAKE2b-256 76a95cb130c2e6e5c1e2ecea9db1245cdffb75be049e7db65bacd466d09397e2

See more details on using hashes here.

File details

Details for the file pyrace-0.0.14-py3-none-any.whl.

File metadata

  • Download URL: pyrace-0.0.14-py3-none-any.whl
  • Upload date:
  • Size: 244.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.3

File hashes

Hashes for pyrace-0.0.14-py3-none-any.whl
Algorithm Hash digest
SHA256 e4e67f2457e94278f1297b1decb5ce98a860f9597fc396eda0945d16a0d618f5
MD5 e8651c8ea9ab061086562d6934f124dd
BLAKE2b-256 f4c177ca5ad1f8e5b4f971c6a160f38401ea3ab15f9b6e5de30c18f7ab90dbc2

See more details on using hashes here.

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