Skip to content

Commit

Permalink
Update the Callbacks: Evaluate Agent Performance section of the Examp…
Browse files Browse the repository at this point in the history
…les (#1604)

* Update examples.rst section "Callbacks: Evaluate Agent Performance"

Two typos fixed

* Update changelog

---------

Co-authored-by: Antonin Raffin <antonin.raffin@ensta.org>
  • Loading branch information
BertrandDecoster and araffin committed Jul 18, 2023
1 parent d68ff2e commit fa7a316
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/guide/examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ You can control the evaluation frequency with ``eval_freq`` to monitor your agen
from stable_baselines3 import SAC
from stable_baselines3.common.callbacks import EvalCallback
from stable-baselines3.common.env_util import make_vec_env
from stable_baselines3.common.env_util import make_vec_env
env_id = "Pendulum-v1"
n_training_envs = 1
Expand All @@ -330,7 +330,7 @@ You can control the evaluation frequency with ``eval_freq`` to monitor your agen
os.makedirs(eval_log_dir, exist_ok=True)
# Initialize a vectorized training environment with default parameters
train_env = make_vec_env(env_id, n_env=n_training_envs, seed=0)
train_env = make_vec_env(env_id, n_envs=n_training_envs, seed=0)
# Separate evaluation env, with different parameters passed via env_kwargs
# Eval environments can be vectorized to speed up evaluation.
Expand Down
3 changes: 2 additions & 1 deletion docs/misc/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ Others:

Documentation:
^^^^^^^^^^^^^^
- Fixed callback example (@BertrandDecoster)


Release 2.0.0 (2023-06-22)
Expand Down Expand Up @@ -1395,4 +1396,4 @@ And all the contributors:
@Melanol @qgallouedec @francescoluciano @jlp-ue @burakdmb @timothe-chaumont @honglu2875
@anand-bala @hughperkins @sidney-tio @AlexPasqua @dominicgkerr @Akhilez @Rocamonde @tobirohrer @ZikangXiong
@DavyMorgan @luizapozzobon @Bonifatius94 @theSquaredError @harveybellini @DavyMorgan @FieteO @jonasreiher @npit @WeberSamuel @troiganto
@lutogniew @lbergmann1 @lukashass
@lutogniew @lbergmann1 @lukashass @BertrandDecoster

0 comments on commit fa7a316

Please sign in to comment.