mirror of
https://github.com/saymrwulf/stable-baselines3.git
synced 2026-11-17 08:56:08 +00:00
Fix typo in examples.rst (#1962)
The variable `env` is not defined. The gym env we want to change is `vec_env`
This commit is contained in:
parent
24ebf1a1df
commit
0eebde7ca1
1 changed files with 1 additions and 1 deletions
|
|
@ -436,7 +436,7 @@ will compute a running average and standard deviation of input features (it can
|
||||||
log_dir = "/tmp/"
|
log_dir = "/tmp/"
|
||||||
model.save(log_dir + "ppo_halfcheetah")
|
model.save(log_dir + "ppo_halfcheetah")
|
||||||
stats_path = os.path.join(log_dir, "vec_normalize.pkl")
|
stats_path = os.path.join(log_dir, "vec_normalize.pkl")
|
||||||
env.save(stats_path)
|
vec_env.save(stats_path)
|
||||||
|
|
||||||
# To demonstrate loading
|
# To demonstrate loading
|
||||||
del model, vec_env
|
del model, vec_env
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue