From d43400b46460522bfd5b26518357721af3e087ce Mon Sep 17 00:00:00 2001 From: Kyle He Date: Tue, 1 Aug 2023 04:20:29 -0700 Subject: [PATCH] Fix typo in the documentation for Custom Policy Networks (#1620) * Update custom_policy.rst * Update changelog.rst --------- Co-authored-by: Antonin RAFFIN --- docs/guide/custom_policy.rst | 2 +- docs/misc/changelog.rst | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/guide/custom_policy.rst b/docs/guide/custom_policy.rst index a136bfa..0807498 100644 --- a/docs/guide/custom_policy.rst +++ b/docs/guide/custom_policy.rst @@ -215,7 +215,7 @@ downsampling and "vector" with a single linear layer. from stable_baselines3.common.torch_layers import BaseFeaturesExtractor class CustomCombinedExtractor(BaseFeaturesExtractor): - def __init__(self, observation_space: spaces.Dict): + def __init__(self, observation_space: gym.spaces.Dict): # We do not know features-dim here before going over all the items, # so put something dummy for now. PyTorch requires calling # nn.Module.__init__ before adding modules diff --git a/docs/misc/changelog.rst b/docs/misc/changelog.rst index 039a094..4cff727 100644 --- a/docs/misc/changelog.rst +++ b/docs/misc/changelog.rst @@ -40,6 +40,7 @@ Others: Documentation: ^^^^^^^^^^^^^^ - Fixed callback example (@BertrandDecoster) +- Fixed policy network example (@kyle-he) - Added mobile-env as new community project (@stefanbschneider) @@ -1401,4 +1402,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 @BertrandDecoster @pseudo-rnd-thoughts @stefanbschneider +@lutogniew @lbergmann1 @lukashass @BertrandDecoster @pseudo-rnd-thoughts @stefanbschneider @kyle-he