2019-09-26 09:46:40 +00:00
.. _changelog:
Changelog
==========
2020-06-04 09:22:12 +00:00
2020-06-08 09:15:10 +00:00
Pre-Release 0.7.0a1 (WIP)
2020-06-04 09:22:12 +00:00
------------------------------
Breaking Changes:
^^^^^^^^^^^^^^^^^
- `` render() `` method of `` VecEnvs `` now only accept one argument: `` mode ``
New Features:
^^^^^^^^^^^^^
Bug Fixes:
^^^^^^^^^^
- Fixed `` render() `` method for `` VecEnvs ``
- Fixed `` seed() ` `` method for `` SubprocVecEnv ``
2020-06-08 09:15:10 +00:00
- Fixed loading on GPU for testing when using gSDE and `` deterministic=False ``
2020-06-04 09:22:12 +00:00
Deprecations:
^^^^^^^^^^^^^
Others:
^^^^^^^
- Re-enable unsafe `` fork `` start method in the tests (was causing a deadlock with tensorflow)
- Added a test for seeding `` SubprocVecEnv ` `` and rendering
Documentation:
^^^^^^^^^^^^^^
2020-06-01 11:09:47 +00:00
Pre-Release 0.6.0 (2020-06-01)
2020-05-05 14:28:38 +00:00
------------------------------
2020-06-01 11:09:47 +00:00
**Tensorboard support, refactored logger**
2020-05-05 14:28:38 +00:00
Breaking Changes:
^^^^^^^^^^^^^^^^^
2020-05-08 13:00:34 +00:00
- Remove State-Dependent Exploration (SDE) support for `` TD3 ``
2020-06-01 09:55:44 +00:00
- Methods were renamed in the logger:
- `` logkv `` -> `` record `` , `` writekvs `` -> `` write `` , `` writeseq `` -> `` write_sequence `` ,
- `` logkvs `` -> `` record_dict `` , `` dumpkvs `` -> `` dump `` ,
- `` getkvs `` -> `` get_log_dict `` , `` logkv_mean `` -> `` record_mean `` ,
2020-05-05 14:28:38 +00:00
New Features:
^^^^^^^^^^^^^
- Added env checker (Sync with Stable Baselines)
- Added `` VecCheckNan `` and `` VecVideoRecorder `` (Sync with Stable Baselines)
2020-05-05 14:54:33 +00:00
- Added determinism tests
2020-05-19 08:19:16 +00:00
- Added `` cmd_util `` and `` atari_wrappers ``
2020-05-18 12:42:13 +00:00
- Added support for `` MultiDiscrete `` and `` MultiBinary `` observation spaces (@rolandgvc)
- Added `` MultiCategorical `` and `` Bernoulli `` distributions for PPO/A2C (@rolandgvc)
2020-06-01 09:55:44 +00:00
- Added support for logging to tensorboard (@rolandgvc)
2020-05-27 07:53:01 +00:00
- Added `` VectorizedActionNoise `` for continuous vectorized environments (@PartiallyTyped)
2020-06-01 09:55:44 +00:00
- Log evaluation in the `` EvalCallback `` using the logger
2020-05-05 14:28:38 +00:00
Bug Fixes:
^^^^^^^^^^
2020-05-05 15:21:56 +00:00
- Fixed a bug that prevented model trained on cpu to be loaded on gpu
2020-05-07 14:08:23 +00:00
- Fixed version number that had a new line included
2020-05-09 21:10:49 +00:00
- Fixed weird seg fault in docker image due to FakeImageEnv by reducing screen size
2020-05-24 14:44:44 +00:00
- Fixed `` sde_sample_freq `` that was not taken into account for SAC
2020-06-01 09:55:44 +00:00
- Pass logger module to `` BaseCallback `` otherwise they cannot write in the one used by the algorithms
2020-05-05 14:28:38 +00:00
Deprecations:
^^^^^^^^^^^^^
Others:
^^^^^^^
- Renamed to Stable-Baseline3
2020-05-07 14:08:23 +00:00
- Added Dockerfile
- Sync `` VecEnvs `` with Stable-Baselines
2020-05-08 10:43:42 +00:00
- Update requirement: `` gym>=0.17 ``
2020-05-11 10:28:43 +00:00
- Added `` .readthedoc.yml `` file
2020-05-12 15:55:01 +00:00
- Added `` flake8 `` and `` make lint `` command
- Added Github workflow
2020-06-01 11:09:47 +00:00
- Added warning when passing both `` train_freq `` and `` n_episodes_rollout `` to Off-Policy Algorithms
2020-05-05 14:28:38 +00:00
Documentation:
^^^^^^^^^^^^^^
2020-05-07 08:10:51 +00:00
- Added most documentation (adapted from Stable-Baselines)
2020-05-09 11:01:15 +00:00
- Added link to CONTRIBUTING.md in the README (@kinalmehta)
2020-05-15 11:54:06 +00:00
- Added gSDE project and update docstrings accordingly
2020-06-01 08:37:42 +00:00
- Fix `` TD3 `` example code block
2020-05-05 14:28:38 +00:00
2020-05-05 12:49:32 +00:00
Pre-Release 0.5.0 (2020-05-05)
2020-03-20 09:09:09 +00:00
------------------------------
2020-05-05 12:49:32 +00:00
**CnnPolicy support for image observations, complete saving/loading for policies**
2020-03-20 09:09:09 +00:00
Breaking Changes:
^^^^^^^^^^^^^^^^^
2020-04-20 13:59:44 +00:00
- Previous loading of policy weights is broken and replace by the new saving/loading for policy
2020-03-20 09:09:09 +00:00
New Features:
^^^^^^^^^^^^^
2020-04-22 11:14:22 +00:00
- Added `` optimizer_class `` and `` optimizer_kwargs `` to `` policy_kwargs `` in order to easily
2020-04-17 13:13:45 +00:00
customizer optimizers
2020-04-20 13:59:44 +00:00
- Complete independent save/load for policies
2020-04-22 11:14:22 +00:00
- Add `` CnnPolicy `` and `` VecTransposeImage `` to support images as input
2020-04-20 13:59:44 +00:00
2020-03-20 09:09:09 +00:00
Bug Fixes:
^^^^^^^^^^
2020-04-17 13:13:45 +00:00
- Fixed `` reset_num_timesteps `` behavior, so `` env.reset() `` is not called if `` reset_num_timesteps=True ``
2020-04-20 13:43:11 +00:00
- Fixed `` squashed_output `` that was not pass to policy constructor for `` SAC `` and `` TD3 `` (would result in scaled actions for unscaled action spaces)
2020-03-20 09:09:09 +00:00
Deprecations:
^^^^^^^^^^^^^
Others:
^^^^^^^
2020-04-17 13:13:45 +00:00
- Cleanup rollout return
2020-04-20 13:43:11 +00:00
- Added `` get_device `` util to manage PyTorch devices
2020-05-05 12:49:32 +00:00
- Added type hints to logger + use f-strings
2020-03-20 09:09:09 +00:00
Documentation:
^^^^^^^^^^^^^^
2020-04-17 13:13:45 +00:00
Pre-Release 0.4.0 (2020-02-14)
2020-04-17 10:36:27 +00:00
------------------------------
2020-04-17 13:13:45 +00:00
**Proper pre-processing, independent save/load for policies**
2020-04-17 10:36:27 +00:00
Breaking Changes:
^^^^^^^^^^^^^^^^^
2020-04-17 13:13:45 +00:00
- Removed CEMRL
- Model saved with previous versions cannot be loaded (because of the pre-preprocessing)
2020-04-17 10:36:27 +00:00
New Features:
^^^^^^^^^^^^^
2020-04-17 13:13:45 +00:00
- Add support for `` Discrete `` observation spaces
- Add saving/loading for policy weights, so the policy can be used without the model
2020-04-17 10:36:27 +00:00
Bug Fixes:
^^^^^^^^^^
2020-04-17 13:13:45 +00:00
- Fix type hint for activation functions
Deprecations:
^^^^^^^^^^^^^
2020-04-17 10:36:27 +00:00
Others:
^^^^^^^
2020-04-17 13:13:45 +00:00
- Refactor handling of observation and action spaces
- Refactored features extraction to have proper preprocessing
- Refactored action distributions
2020-04-17 10:36:27 +00:00
2020-02-14 13:39:24 +00:00
2020-03-19 10:11:36 +00:00
Pre-Release 0.3.0 (2020-02-14)
2020-01-20 15:19:35 +00:00
------------------------------
2019-09-26 09:46:40 +00:00
2020-03-19 10:11:36 +00:00
**Bug fixes, sync with Stable-Baselines, code cleanup**
2020-02-14 13:39:24 +00:00
Breaking Changes:
^^^^^^^^^^^^^^^^^
2020-03-10 16:43:54 +00:00
- Removed default seed
- Bump dependencies (PyTorch and Gym)
2020-03-18 14:11:19 +00:00
- `` predict() `` now returns a tuple to match Stable-Baselines behavior
2020-02-14 13:39:24 +00:00
New Features:
^^^^^^^^^^^^^
2020-03-13 10:43:12 +00:00
- Better logging for `` SAC `` and `` PPO ``
2020-02-14 13:39:24 +00:00
Bug Fixes:
^^^^^^^^^^
2020-03-12 11:34:25 +00:00
- Synced callbacks with Stable-Baselines
2020-03-19 10:11:36 +00:00
- Fixed colors in `` results_plotter ``
2020-03-19 09:19:48 +00:00
- Fix entropy computation (now summed over action dim)
2020-02-14 13:39:24 +00:00
Others:
^^^^^^^
2020-02-21 13:50:28 +00:00
- SAC with SDE now sample only one matrix
2020-03-09 18:05:22 +00:00
- Added `` clip_mean `` parameter to SAC policy
2020-03-10 15:55:13 +00:00
- Buffers now return `` NamedTuple ``
2020-03-10 16:43:54 +00:00
- More typing
2020-03-11 15:35:13 +00:00
- Add test for `` expln ``
2020-03-16 13:01:32 +00:00
- Renamed `` learning_rate `` to `` lr_schedule ``
2020-03-18 14:11:19 +00:00
- Add `` version.txt ``
2020-03-19 09:19:48 +00:00
- Add more tests for distribution
2020-02-14 13:39:24 +00:00
Documentation:
^^^^^^^^^^^^^^
2020-03-16 13:01:32 +00:00
- Deactivated `` sphinx_autodoc_typehints `` extension
2020-02-14 13:39:24 +00:00
Pre-Release 0.2.0 (2020-02-14)
------------------------------
**Python 3.6+ required, type checking, callbacks, doc build**
2019-09-26 09:46:40 +00:00
Breaking Changes:
^^^^^^^^^^^^^^^^^
2020-05-05 13:02:35 +00:00
- Python 2 support was dropped, Stable Baselines3 now requires Python 3.6 or above
2020-03-09 18:05:22 +00:00
- Return type of `` evaluation.evaluate_policy() `` has been changed
2020-02-03 14:50:40 +00:00
- Refactored the replay buffer to avoid transformation between PyTorch and NumPy
2020-02-05 12:10:02 +00:00
- Created `OffPolicyRLModel` base class
2020-02-14 12:42:16 +00:00
- Remove deprecated JSON format for `Monitor`
2019-09-26 09:46:40 +00:00
New Features:
^^^^^^^^^^^^^
2020-03-09 18:05:22 +00:00
- Add `` seed() `` method to `` VecEnv `` class
2020-01-27 13:32:31 +00:00
- Add support for Callback (cf https://github.com/hill-a/stable-baselines/pull/644)
2020-02-05 12:10:02 +00:00
- Add methods for saving and loading replay buffer
2020-03-09 18:05:22 +00:00
- Add `` extend() `` method to the buffers
- Add `` get_vec_normalize_env() `` to `` BaseRLModel `` to retrieve `` VecNormalize `` wrapper when it exists
- Add `` results_plotter `` from Stable Baselines
- Improve `` predict() `` method to handle different type of observations (single, vectorized, ...)
2019-09-26 09:46:40 +00:00
Bug Fixes:
^^^^^^^^^^
2020-01-31 12:06:55 +00:00
- Fix loading model on CPU that were trained on GPU
2020-03-09 18:05:22 +00:00
- Fix `` reset_num_timesteps `` that was not used
2020-02-11 16:22:03 +00:00
- Fix entropy computation for squashed Gaussian (approximate it now)
- Fix seeding when using multiple environments (different seed per env)
2019-09-26 09:46:40 +00:00
2020-01-20 15:19:35 +00:00
Others:
^^^^^^^
2020-01-22 16:23:42 +00:00
- Add type check
- Converted all format string to f-strings
2020-03-09 18:05:22 +00:00
- Add test for `` OrnsteinUhlenbeckActionNoise ``
- Add type aliases in `` common.type_aliases ``
2020-01-20 15:19:35 +00:00
Documentation:
^^^^^^^^^^^^^^
- fix documentation build
Pre-Release 0.1.0 (2020-01-20)
------------------------------
**First Release: base algorithms and state-dependent exploration**
New Features:
^^^^^^^^^^^^^
2020-03-09 18:05:22 +00:00
- Initial release of A2C, CEM-RL, PPO, SAC and TD3, working only with `` Box `` input space
2020-01-20 15:19:35 +00:00
- State-Dependent Exploration (SDE) for A2C, PPO, SAC and TD3
2019-09-26 09:46:40 +00:00
Maintainers
-----------
2020-05-05 14:28:38 +00:00
Stable-Baselines3 is currently maintained by `Antonin Raffin`_ (aka `@araffin`_ ), `Ashley Hill`_ (aka @hill-a),
`Maximilian Ernestus`_ (aka @erniejunior), `Adam Gleave`_ (`@AdamGleave`_ ) and `Anssi Kanervisto`_ (aka `@Miffyli`_ ).
2019-09-26 09:46:40 +00:00
2020-05-05 14:28:38 +00:00
.. _Ashley Hill: https://github.com/hill-a
2019-09-26 09:46:40 +00:00
.. _Antonin Raffin: https://araffin.github.io/
2020-05-05 14:28:38 +00:00
.. _Maximilian Ernestus: https://github.com/erniejunior
.. _Adam Gleave: https://gleave.me/
2019-09-26 09:46:40 +00:00
.. _@araffin: https://github.com/araffin
2020-05-05 14:28:38 +00:00
.. _@AdamGleave: https://github.com/adamgleave
.. _Anssi Kanervisto: https://github.com/Miffyli
.. _@Miffyli: https://github.com/Miffyli
2019-09-26 09:46:40 +00:00
Contributors:
-------------
In random order...
2020-03-09 18:05:22 +00:00
Thanks to the maintainers of V2: @hill-a @enerijunior @AdamGleave @Miffyli
And all the contributors:
@bjmuld @iambenzo @iandanforth @r7vme @brendenpetersen @huvar @abhiskk @JohannesAck
@EliasHasle @mrakgr @Bleyddyn @antoine-galataud @junhyeokahn @AdamGleave @keshaviyengar @tperol
@XMaster96 @kantneel @Pastafarianist @GerardMaggiolino @PatrickWalter214 @yutingsz @sc420 @Aaahh @billtubbs
@Miffyli @dwiel @miguelrass @qxcv @jaberkow @eavelardev @ruifeng96150 @pedrohbtp @srivatsankrishnan @evilsocket
@MarvineGothic @jdossgollin @SyllogismRXS @rusu24edward @jbulow @Antymon @seheevic @justinkterry @edbeeching
2020-06-01 08:37:42 +00:00
@flodorner @KuKuXia @NeoExtended @PartiallyTyped @mmcenta @richardwu @kinalmehta @rolandgvc @tkelestemur @mloo3