Fix unused code (#28)

* Fix unused code

* Update changelog

* Update SB3 dependency
This commit is contained in:
Antonin RAFFIN 2021-05-05 11:42:10 +02:00 committed by GitHub
parent 81ef23d270
commit 61bfdbc00a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 24 additions and 5 deletions

View File

@ -28,7 +28,7 @@ jobs:
run: |
python -m pip install --upgrade pip
# cpu version of pytorch
pip install torch==1.8.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
pip install torch==1.8.1+cpu -f https://download.pytorch.org/whl/torch_stable.html
# Install dependencies for docs and tests
pip install stable_baselines3[extra,tests,docs]
# Install master version

View File

@ -3,6 +3,27 @@
Changelog
==========
Release 1.1.0a5 (WIP)
-------------------------------
Breaking Changes:
^^^^^^^^^^^^^^^^^
Bug Fixes:
^^^^^^^^^^
- Removed unused code in ``TQC``
Deprecations:
^^^^^^^^^^^^^
Others:
^^^^^^^
- SB3 docs and tests dependencies are no longer required for installing SB3 contrib
Documentation:
^^^^^^^^^^^^^^
Release 1.0 (2021-03-17)
-------------------------------

View File

@ -132,8 +132,6 @@ class TQC(OffPolicyAlgorithm):
def _setup_model(self) -> None:
super(TQC, self)._setup_model()
self._create_aliases()
self.replay_buffer.actor = self.actor
self.replay_buffer.ent_coef = 0.0
# Target entropy is used when learning the entropy coefficient
if self.target_entropy == "auto":

View File

@ -1 +1 @@
1.0
1.1.0a5

View File

@ -62,7 +62,7 @@ setup(
packages=[package for package in find_packages() if package.startswith("sb3_contrib")],
package_data={"sb3_contrib": ["py.typed", "version.txt"]},
install_requires=[
"stable_baselines3[tests,docs]>=1.0",
"stable_baselines3>=1.0",
],
description="Contrib package of Stable Baselines3, experimental code.",
author="Antonin Raffin",