Downloads · 30 days
0
libertininick/q-table-frozen-lake
q-table-frozen-lake is a reinforcement learning model from libertininick. Use it for the reinforcement learning task on the model card, and read the license before you ship it in a product.
This is a trained Q-Learning agent playing FrozenLake-v1.
Downloads · 30 days
0
Access
Public
Updated Apr 7, 2024
Repo size
1.1 KB
Likes
0
Public
Click a slice to open those files.
Other1.5 KB · 36%
From the Hugging Face model README
This is a trained Q-Learning agent playing FrozenLake-v1.
import gymnasium as gym
from huggingface_hub import snapshot_download
# https://github.com/libertininick/r2seedo
from r2seedo.io import load_n_verify_model
# Download model snapshot from Hugging Face Hub
repo_local_path = snapshot_download(
repo_id="libertininick/q-table-frozen-lake",
local_dir="path/to/download",
)
# Load the model from the snapshot
model = load_n_verify_model(repo_local_path)
# Create the environment
env = env_slippery = gym.make(
id='FrozenLake-v1',
map_name='4x4',
is_slippery=True,
)