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.13.tar.gz (242.2 kB view details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyrace-0.0.13.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.46.0 CPython/3.7.3

File hashes

Hashes for pyrace-0.0.13.tar.gz
Algorithm Hash digest
SHA256 2948ce3dd2a19c1cd458d91392ed96423cd6c3cc9a27fa479b4ebe5516582eab
MD5 c200649a3b069521ecad7ee1fbd5719f
BLAKE2b-256 959794fe58b29023abd870c0b88e141a73b95c6c9bfe45f13ae7cfd09a55a518

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyrace-0.0.13-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.46.0 CPython/3.7.3

File hashes

Hashes for pyrace-0.0.13-py3-none-any.whl
Algorithm Hash digest
SHA256 5d52309cfb1583d15be079e58b905f1a618b309bd0ebbef73c2907fe727eb452
MD5 b41f6902dfce5da29fdf837350b82acc
BLAKE2b-256 11d587c4d78f5a6660a973e209c296f9bc4a2d661bdea2c3d3366982f213bb6c

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