mirror of
https://github.com/saymrwulf/stable-baselines3.git
synced 2026-11-18 09:54:10 +00:00
Fix typo in the documentation for Custom Policy Networks (#1620)
* Update custom_policy.rst * Update changelog.rst --------- Co-authored-by: Antonin RAFFIN <antonin.raffin@ensta.org>
This commit is contained in:
parent
ba77dd7c61
commit
d43400b464
2 changed files with 3 additions and 2 deletions
|
|
@ -215,7 +215,7 @@ downsampling and "vector" with a single linear layer.
|
||||||
from stable_baselines3.common.torch_layers import BaseFeaturesExtractor
|
from stable_baselines3.common.torch_layers import BaseFeaturesExtractor
|
||||||
|
|
||||||
class CustomCombinedExtractor(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,
|
# We do not know features-dim here before going over all the items,
|
||||||
# so put something dummy for now. PyTorch requires calling
|
# so put something dummy for now. PyTorch requires calling
|
||||||
# nn.Module.__init__ before adding modules
|
# nn.Module.__init__ before adding modules
|
||||||
|
|
|
||||||
|
|
@ -40,6 +40,7 @@ Others:
|
||||||
Documentation:
|
Documentation:
|
||||||
^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^
|
||||||
- Fixed callback example (@BertrandDecoster)
|
- Fixed callback example (@BertrandDecoster)
|
||||||
|
- Fixed policy network example (@kyle-he)
|
||||||
- Added mobile-env as new community project (@stefanbschneider)
|
- 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
|
@Melanol @qgallouedec @francescoluciano @jlp-ue @burakdmb @timothe-chaumont @honglu2875
|
||||||
@anand-bala @hughperkins @sidney-tio @AlexPasqua @dominicgkerr @Akhilez @Rocamonde @tobirohrer @ZikangXiong
|
@anand-bala @hughperkins @sidney-tio @AlexPasqua @dominicgkerr @Akhilez @Rocamonde @tobirohrer @ZikangXiong
|
||||||
@DavyMorgan @luizapozzobon @Bonifatius94 @theSquaredError @harveybellini @DavyMorgan @FieteO @jonasreiher @npit @WeberSamuel @troiganto
|
@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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue