innocent-charles commited on
Commit
a8f1854
1 Parent(s): aab68c0

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +12 -0
README.md CHANGED
@@ -32,5 +32,17 @@ TODO: Add your code
32
  from stable_baselines3 import ...
33
  from huggingface_sb3 import load_from_hub
34
 
 
 
 
 
 
 
 
 
 
 
 
 
35
  ...
36
  ```
 
32
  from stable_baselines3 import ...
33
  from huggingface_sb3 import load_from_hub
34
 
35
+ repo_id = "innocent-charles/RL-ppo-LunarLander-v2"
36
+ filename = "RL-ppo-LunarLander-v2.zip"
37
+
38
+ custom_objects = {
39
+ "learning_rate": 0.0,
40
+ "lr_schedule": lambda _: 0.0,
41
+ "clip_range": lambda _: 0.0,
42
+ }
43
+
44
+ checkpoint = load_from_hub(repo_id, filename)
45
+ model = PPO.load(checkpoint, custom_objects=custom_objects, print_system_info=True)
46
+
47
  ...
48
  ```