mirror of
https://github.com/saymrwulf/stable-baselines3.git
synced 2026-07-24 19:43:50 +00:00
Update the Callbacks: Evaluate Agent Performance section of the Examples (#1604)
* Update examples.rst section "Callbacks: Evaluate Agent Performance" Two typos fixed * Update changelog --------- Co-authored-by: Antonin Raffin <antonin.raffin@ensta.org>
This commit is contained in:
parent
d68ff2e17f
commit
fa7a3168f3
2 changed files with 4 additions and 3 deletions
|
|
@ -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
|
||||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -35,6 +35,7 @@ Others:
|
|||
|
||||
Documentation:
|
||||
^^^^^^^^^^^^^^
|
||||
- Fixed callback example (@BertrandDecoster)
|
||||
|
||||
|
||||
Release 2.0.0 (2023-06-22)
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue