so much room for activities
Project description
bettermdptools
Getting Started
About
Bettermdptools is a package designed to help users get started with gymnasium, a maintained fork of OpenAI’s Gym library. Bettermdptools includes planning and reinforcement learning algorithms, useful utilities and plots, environment models for blackjack and cartpole, and starter code for working with gymnasium.
Install
pip install or git clone bettermdptools.
pip install bettermdptools
git clone https://github.com/jlm429/bettermdptools
Starter code to get up and running on the gymnasium frozen lake environment. See bettermdptools/notebooks for more.
import gymnasium as gym
from bettermdptools.algorithms.planner import Planner
from bettermdptools.utils.plots import Plots
# make gym environment
frozen_lake = gym.make('FrozenLake8x8-v1', render_mode=None)
# run VI
V, V_track, pi = Planner(frozen_lake.P).value_iteration()
#plot state values
size=(8,8)
Plots.values_heat_map(V, "Frozen Lake\nValue Iteration State Values", size)
Contributing
Pull requests are welcome.
- Fork bettermdptools.
- Create a branch (
git checkout -b branch_name
) - Commit changes (
git commit -m "Comments"
) - Push to branch (
git push origin branch_name
) - Open a pull request
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
bettermdptools-0.7.2.tar.gz
(339.3 kB
view details)
File details
Details for the file bettermdptools-0.7.2.tar.gz
.
File metadata
- Download URL: bettermdptools-0.7.2.tar.gz
- Upload date:
- Size: 339.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.66.1 urllib3/1.26.5 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb5c3c8356e6469677a0d4051867445a9312fe2307cd4ff91e3940233dae6a46 |
|
MD5 | 370658a3d3e392ae6191c610151c9aa0 |
|
BLAKE2b-256 | 974f66c49bc5e9a60fccd60723a4cb9d1e30647e824826738c522cf024065c9b |