math/py-gym 0.26.2_4 FreeBSD
OpenAI toolkit for developing and comparing your reinforcement learning agents
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- License
- MIT
- Categories
- math, python
- Package size
- 930.6 KiB, 3709.0 KiB installed
Description
OpenAI Gym is a toolkit for developing and comparing reinforcement learning algorithms. This is the gym open-source library, which gives you access to a standardized set of environments.
gym makes no assumptions about the structure of your agent, and is compatible with any numerical computation library, such as TensorFlow or Theano. You can use it from Python code, and soon from other languages.
There are two basic concepts in reinforcement learning: the environment (namely, the outside world) and the agent (namely, the algorithm you are writing). The agent sends actions to the environment, and the environment replies with observations and rewards (that is, a score).
The core gym interface is Env, which is the unified environment interface. There is no interface for agents; that part is left to you. The following are the Env methods you should know:
- reset(self): Reset the environment's state. Returns observation.
- step(self, action): Step the environment by one timestep. Returns observation, reward, done, info.
- render(self, mode='human'): Render one frame of the environment. The default mode will do something human friendly, such as pop up a window.
In the other systems
| System | Port | Version |
|---|---|---|
| FreeBSD | math/py-gym | 0.26.2_4 |
| DragonFly | math/py-gym | 0.26.2_2 |
Install
Binary package:
pkg install py312-gym
From the ports tree:
cd /usr/ports/math/py-gym/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= py312-gym>0:math/py-gym
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 0.26.2_4 | 0.26.2_4 | - | 0.26.2_2 | 0.26.2_4 |
| FreeBSD:14:quarterly | 0.26.2_4 | 0.26.2_4 | n/a | 0.26.2_2 | 0.26.2_4 |
| FreeBSD:15:latest | 0.26.2_4 | 0.26.2_4 | n/a | 0.26.2_2 | 0.26.2_2 |
| FreeBSD:15:quarterly | 0.26.2_4 | 0.26.2_4 | n/a | n/a | n/a |
| FreeBSD:16:latest | 0.26.2_4 | 0.26.2_4 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
As this port's Makefile names them.
Build 2
${PYTHON_PKGNAMEPREFIX}setuptools>=0: devel/py-setuptools${PYTHON_PKGNAMEPREFIX}wheel>=0: devel/py-wheel
Runtime 3
${PYTHON_PKGNAMEPREFIX}cloudpickle>=1.2.0: devel/py-cloudpickle${PYTHON_PKGNAMEPREFIX}gym-notices>=0.0.4: math/py-gym-notices${PYTHON_PKGNAMEPREFIX}numpy>=1.18.0,1: math/py-numpy
Test 1
${PYTHON_PKGNAMEPREFIX}pytest>=0: devel/py-pytest
The full lists below include those, and their dependencies in turn.
Build dependencies 16
Run dependencies 18
Required by 1
Configuration
No options to configure.
- USES
- python
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| gym-0.26.2.tar.gz | 721689 | e0d882f4b54f0c65f203104c24ab8a38b039f1289986803c7d02cdbe214fbcc4 |
Master sites 1
- PYPI
Commit history 0
No commits in the history this site was built from.