Fix outdated load_parameters to set_parameters (#1270)

* Update examples.rst

* Update changelog

Co-authored-by: Antonin Raffin <antonin.raffin@ensta.org>
This commit is contained in:
Yu Zheng 2023-01-11 21:13:21 +08:00 committed by GitHub
parent 6b8905acdb
commit 9bb1538b78
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 33 additions and 2 deletions

View file

@ -606,7 +606,7 @@ However, SB3 provides a ``save_replay_buffer()`` and ``load_replay_buffer()`` me
Accessing and modifying model parameters
----------------------------------------
You can access model's parameters via ``load_parameters`` and ``get_parameters`` functions,
You can access model's parameters via ``set_parameters`` and ``get_parameters`` functions,
or via ``model.policy.state_dict()`` (and ``load_state_dict()``),
which use dictionaries that map variable names to PyTorch tensors.

View file

@ -4,6 +4,36 @@ Changelog
==========
Release 1.8.0a0 (WIP)
--------------------------
Breaking Changes:
^^^^^^^^^^^^^^^^^
New Features:
^^^^^^^^^^^^^
`SB3-Contrib`_
^^^^^^^^^^^^^^
`RL Zoo`_
^^^^^^^^^
Bug Fixes:
^^^^^^^^^^
Deprecations:
^^^^^^^^^^^^^
Others:
^^^^^^^
Documentation:
^^^^^^^^^^^^^^
- Renamed ``load_parameters`` to ``set_parameters`` (@DavyMorgan)
Release 1.7.0 (2023-01-10)
--------------------------
@ -1184,3 +1214,4 @@ And all the contributors:
@Gregwar @ycheng517 @quantitative-technologies @bcollazo @git-thor @TibiGG @cool-RR @MWeltevrede
@Melanol @qgallouedec @francescoluciano @jlp-ue @burakdmb @timothe-chaumont @honglu2875 @yuanmingqi
@anand-bala @hughperkins @sidney-tio @AlexPasqua @dominicgkerr @Akhilez @Rocamonde @tobirohrer @ZikangXiong
@DavyMorgan

View file

@ -1 +1 @@
1.7.0
1.8.0a0