Skip to main content

A random walk environment for Gymnasium

Project description

Random Walk

The Random Walk Environment is a custom Gymnasium environment that simulates a simple random walk process. The agent starts in a predefined state and moves randomly to adjacent states (left or right) at each timestep. The states are arranged in a row, with terminal states at both ends. The rightmost terminal state rewards the agent with +1, while all other transitions have a reward of 0. The environment is ideal for experiments in reinforcement learning or Markov Reward Processes (MRPs), focusing on stochastic state transitions without actions.

Use with gymnasium

import random_walk_env
import gymnasium as gym

env = gym.make('random_walk_env/RandomWalk-v0')

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

random_walk_env-0.0.2.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

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

random_walk_env-0.0.2-py2.py3-none-any.whl (3.9 kB view details)

Uploaded Python 2Python 3

File details

Details for the file random_walk_env-0.0.2.tar.gz.

File metadata

  • Download URL: random_walk_env-0.0.2.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for random_walk_env-0.0.2.tar.gz
Algorithm Hash digest
SHA256 366a5c095bc2054622cca1c45855bf4e1cfde2fcdf56e89427f181aac748b1ed
MD5 e3a02e89abcb39c98f1737b1425d879c
BLAKE2b-256 9da93eafb949623777ca8efa0d0a820a9dea625a9259c10b219a95bcc4d54f74

See more details on using hashes here.

File details

Details for the file random_walk_env-0.0.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for random_walk_env-0.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 751dd58cccc74388f5f666fafed4d006914fd764ec95dd48a2239f7c939ba7ab
MD5 e205422457be83350a96def016d0291c
BLAKE2b-256 b54fa2f4da25109c9ad12b02f49b0f56707491909cdc7d670aeded2acd81ae76

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