sayby commited on
Commit
19d12ff
1 Parent(s): 35799d5

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -3
README.md CHANGED
@@ -22,19 +22,19 @@ model-index:
22
  ---
23
  # **Q-Learning** Agent playing **CartPole-v1**
24
 
25
- This is a trained model of a **Q-Learning** agent playing **CartPole-v1** .
26
 
27
  ## Usage
28
 
29
  ```python
30
 
31
- model = load_from_hub(repo_id="sayby/Reinforce-CartPole-v1", filename="q-learning.pkl")
32
 
33
  # Don't forget to check if you need to add additional attributes (is_slippery=False etc)
34
 
35
  env = gym.make(model["env_id"])
36
 
37
- evaluate_agent(env, model["max_steps"], model["n_eval_episodes"], model["qtable"], model["eval_seed"])
38
 
39
 
40
  ```
 
22
  ---
23
  # **Q-Learning** Agent playing **CartPole-v1**
24
 
25
+ This is a trained model of a **Reinforce** agent playing **CartPole-v1** .
26
 
27
  ## Usage
28
 
29
  ```python
30
 
31
+ model = load_from_hub(repo_id="sayby/Reinforce-CartPole-v1", filename="model.pt")
32
 
33
  # Don't forget to check if you need to add additional attributes (is_slippery=False etc)
34
 
35
  env = gym.make(model["env_id"])
36
 
37
+ evaluate_agent(env, model["max_steps"], model["n_eval_episodes"], model["eval_seed"])
38
 
39
 
40
  ```