mirror of
https://github.com/saymrwulf/stable-baselines3.git
synced 2026-07-30 20:18:15 +00:00
Build the doc
This commit is contained in:
parent
2281ef5673
commit
26981f1247
3 changed files with 17 additions and 13 deletions
22
README.md
22
README.md
|
|
@ -1,6 +1,10 @@
|
|||
<img src="docs/\_static/img/logo.png" align="right" width="40%"/>
|
||||
|
||||
<!-- [](https://travis-ci.com/hill-a/stable-baselines) [](https://stable-baselines.readthedocs.io/en/master/?badge=master) [](https://www.codacy.com/app/baselines_janitors/stable-baselines?utm_source=github.com&utm_medium=referral&utm_content=hill-a/stable-baselines&utm_campaign=Badge_Grade) [](https://www.codacy.com/app/baselines_janitors/stable-baselines?utm_source=github.com&utm_medium=referral&utm_content=hill-a/stable-baselines&utm_campaign=Badge_Coverage) -->
|
||||
<!-- [](https://travis-ci.com/hill-a/stable-baselines)
|
||||
[](https://www.codacy.com/app/baselines_janitors/stable-baselines?utm_source=github.com&utm_medium=referral&utm_content=hill-a/stable-baselines&utm_campaign=Badge_Grade)
|
||||
[](https://www.codacy.com/app/baselines_janitors/stable-baselines?utm_source=github.com&utm_medium=referral&utm_content=hill-a/stable-baselines&utm_campaign=Badge_Coverage) -->
|
||||
|
||||
[](https://stable-baselines3.readthedocs.io/en/master/?badge=master)
|
||||
|
||||
**WARNING: Stable Baselines3 is currently in a beta version, breaking changes may occur before 1.0 is released**
|
||||
|
||||
|
|
@ -15,7 +19,7 @@ You can read a detailed presentation of Stable Baselines in the [Medium article]
|
|||
|
||||
These algorithms will make it easier for the research community and industry to replicate, refine, and identify new ideas, and will create good baselines to build projects on top of. We expect these tools will be used as a base around which new ideas can be added, and as a tool for comparing a new approach against existing ones. We also hope that the simplicity of these tools will allow beginners to experiment with a more advanced toolset, without being buried in implementation details.
|
||||
|
||||
**Note: despite its simplicity of use, Stable Baselines3 (SB3) assumes you have some knowledge about Reinforcement Learning (RL).** You should not utilize this library without some practice. To that extent, we provide good resources in the [documentation](https://stable-baselines.readthedocs.io/en/master/guide/rl.html) to get started with RL.
|
||||
**Note: despite its simplicity of use, Stable Baselines3 (SB3) assumes you have some knowledge about Reinforcement Learning (RL).** You should not utilize this library without some practice. To that extent, we provide good resources in the [documentation](https://stable-baselines3.readthedocs.io/en/master/guide/rl.html) to get started with RL.
|
||||
|
||||
## Main Features
|
||||
|
||||
|
|
@ -60,7 +64,7 @@ Planned features:
|
|||
|
||||
## Documentation
|
||||
|
||||
Documentation is available online: [https://stable-baselines.readthedocs.io/](https://stable-baselines.readthedocs.io/)
|
||||
Documentation is available online: [https://stable-baselines3.readthedocs.io/](https://stable-baselines3.readthedocs.io/)
|
||||
|
||||
|
||||
## RL Baselines3 Zoo: A Collection of Trained RL Agents
|
||||
|
|
@ -78,7 +82,7 @@ Goals of this repository:
|
|||
|
||||
Github repo: https://github.com/DLR-RM/rl-baselines3-zoo
|
||||
|
||||
<!-- Documentation: https://stable-baselines.readthedocs.io/en/master/guide/rl_zoo.html -->
|
||||
<!-- Documentation: https://stable-baselines3.readthedocs.io/en/master/guide/rl_zoo.html -->
|
||||
|
||||
## Installation
|
||||
|
||||
|
|
@ -89,7 +93,7 @@ Stable Baselines3 requires python 3.6+.
|
|||
|
||||
<!-- #### Windows 10
|
||||
|
||||
To install stable-baselines on Windows, please look at the [documentation](https://stable-baselines.readthedocs.io/en/master/guide/install.html#prerequisites). -->
|
||||
To install stable-baselines on Windows, please look at the [documentation](https://stable-baselines3.readthedocs.io/en/master/guide/install.html#prerequisites). -->
|
||||
|
||||
|
||||
### Install using pip
|
||||
|
|
@ -103,7 +107,7 @@ This includes an optional dependencies like OpenCV or `atari-py` to train on ata
|
|||
pip install stable-baselines3
|
||||
```
|
||||
|
||||
Please read the [documentation](https://stable-baselines.readthedocs.io/) for more details and alternatives (from source, using docker).
|
||||
Please read the [documentation](https://stable-baselines3.readthedocs.io/) for more details and alternatives (from source, using docker).
|
||||
|
||||
|
||||
## Example
|
||||
|
|
@ -133,7 +137,7 @@ for i in range(1000):
|
|||
env.close()
|
||||
```
|
||||
|
||||
Or just train a model with a one liner if [the environment is registered in Gym](https://github.com/openai/gym/wiki/Environments) and if [the policy is registered](https://stable-baselines.readthedocs.io/en/master/guide/custom_policy.html):
|
||||
Or just train a model with a one liner if [the environment is registered in Gym](https://github.com/openai/gym/wiki/Environments) and if [the policy is registered](https://stable-baselines3.readthedocs.io/en/master/guide/custom_policy.html):
|
||||
|
||||
```python
|
||||
from stable_baselines3 import PPO
|
||||
|
|
@ -141,7 +145,7 @@ from stable_baselines3 import PPO
|
|||
model = PPO('MlpPolicy', 'CartPole-v1').learn(10000)
|
||||
```
|
||||
|
||||
Please read the [documentation](https://stable-baselines.readthedocs.io/) for more examples.
|
||||
Please read the [documentation](https://stable-baselines3.readthedocs.io/) for more examples.
|
||||
|
||||
|
||||
## Try it online with Colab Notebooks !
|
||||
|
|
@ -191,7 +195,7 @@ make type
|
|||
|
||||
<!-- ## Projects Using Stable-Baselines3
|
||||
|
||||
We try to maintain a list of project using stable-baselines3 in the [documentation](https://stable-baselines.readthedocs.io/en/master/misc/projects.html),
|
||||
We try to maintain a list of project using stable-baselines3 in the [documentation](https://stable-baselines3.readthedocs.io/en/master/misc/projects.html),
|
||||
please tell us when if you want your project to appear on this page ;) -->
|
||||
|
||||
## Citing the Project
|
||||
|
|
|
|||
4
setup.py
4
setup.py
|
|
@ -25,7 +25,7 @@ Medium article:
|
|||
https://medium.com/@araffin/df87c4b2fc82
|
||||
|
||||
Documentation:
|
||||
https://stable-baselines.readthedocs.io/en/master/
|
||||
https://stable-baselines3.readthedocs.io/en/master/
|
||||
|
||||
RL Baselines3 Zoo:
|
||||
https://github.com/DLR-RM/rl-baselines3-zoo
|
||||
|
|
@ -56,7 +56,7 @@ for i in range(1000):
|
|||
obs = env.reset()
|
||||
```
|
||||
|
||||
Or just train a model with a one liner if [the environment is registered in Gym](https://github.com/openai/gym/wiki/Environments) and if [the policy is registered](https://stable-baselines.readthedocs.io/en/master/guide/custom_policy.html):
|
||||
Or just train a model with a one liner if [the environment is registered in Gym](https://github.com/openai/gym/wiki/Environments) and if [the policy is registered](https://stable-baselines3.readthedocs.io/en/master/guide/custom_policy.html):
|
||||
|
||||
```python
|
||||
from stable_baselines3 import PPO
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ def _check_image_input(observation_space: spaces.Box) -> None:
|
|||
if observation_space.shape[0] < 36 or observation_space.shape[1] < 36:
|
||||
warnings.warn("The minimal resolution for an image is 36x36 for the default CnnPolicy. "
|
||||
"You might need to use a custom `cnn_extractor` "
|
||||
"cf https://stable-baselines.readthedocs.io/en/master/guide/custom_policy.html")
|
||||
"cf https://stable-baselines3.readthedocs.io/en/master/guide/custom_policy.html")
|
||||
|
||||
|
||||
def _check_unsupported_obs_spaces(env: gym.Env, observation_space: spaces.Space) -> None:
|
||||
|
|
@ -208,7 +208,7 @@ def check_env(env: gym.Env, warn: bool = True, skip_render_check: bool = True) -
|
|||
(np.any(np.abs(action_space.low) != np.abs(action_space.high))
|
||||
or np.any(np.abs(action_space.low) > 1) or np.any(np.abs(action_space.high) > 1))):
|
||||
warnings.warn("We recommend you to use a symmetric and normalized Box action space (range=[-1, 1]) "
|
||||
"cf https://stable-baselines.readthedocs.io/en/master/guide/rl_tips.html")
|
||||
"cf https://stable-baselines3.readthedocs.io/en/master/guide/rl_tips.html")
|
||||
|
||||
# ============ Check the returned values ===============
|
||||
_check_returned_values(env, observation_space, action_space)
|
||||
|
|
|
|||
Loading…
Reference in a new issue