File size: 1,105 Bytes
16c88aa
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a226720
 
16c88aa
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
---
tags:
- FrozenLake-v1-4x4-slippery
- q-learning
- reinforcement-learning
- custom-implementation
model-index:
- name: q-table-frozen-lake
  results:
  - task:
      type: reinforcement-learning
      name: reinforcement-learning
    dataset:
      name: FrozenLake-v1-4x4-slippery
      type: FrozenLake-v1-4x4-slippery
    metrics:
    - type: mean_reward
      value: 0.75 +/- 0.43
      name: mean_reward
      verified: false
---

# **Q-Learning** Agent playing **FrozenLake-v1**

This is a trained **Q-Learning** agent playing **FrozenLake-v1**.

## Usage

```python
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,
)
```