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.
Release files for pyrace 0.0.14
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyrace-0.0.14.tar.gz | 242.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyrace-0.0.14-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 486.6 kB
Release files / pyrace-0.0.14.tar.gz
| Download URL | pyrace-0.0.14.tar.gz |
|---|---|
| Size | 242.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
552a3bab32446ab6bb43419cd993716bbda12ccc2ebf93c82de0f0a857ccb0fa
|
|
BLAKE2b-256 checksum How to use checksums |
76a95cb130c2e6e5c1e2ecea9db1245cdffb75be049e7db65bacd466d09397e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / pyrace-0.0.14-py3-none-any.whl
| Download URL | pyrace-0.0.14-py3-none-any.whl |
|---|---|
| Size | 244.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e4e67f2457e94278f1297b1decb5ce98a860f9597fc396eda0945d16a0d618f5
|
|
BLAKE2b-256 checksum How to use checksums |
f4c177ca5ad1f8e5b4f971c6a160f38401ea3ab15f9b6e5de30c18f7ab90dbc2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|