Reinforcement Learning
stable-baselines3
AntBulletEnv-v0
deep-reinforcement-learning
Eval Results (legacy)
Instructions to use SimingSiming/a2c-AntBulletEnv-v0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- stable-baselines3
How to use SimingSiming/a2c-AntBulletEnv-v0 with stable-baselines3:
from huggingface_sb3 import load_from_hub checkpoint = load_from_hub( repo_id="SimingSiming/a2c-AntBulletEnv-v0", filename="{MODEL FILENAME}.zip", ) - Notebooks
- Google Colab
- Kaggle
Commit ·
d702fda
1
Parent(s): bce421d
Update README.md
Browse files
README.md
CHANGED
|
@@ -25,12 +25,23 @@ This is a trained model of a **A2C** agent playing **AntBulletEnv-v0**
|
|
| 25 |
using the [stable-baselines3 library](https://github.com/DLR-RM/stable-baselines3).
|
| 26 |
|
| 27 |
## Usage (with Stable-baselines3)
|
| 28 |
-
TODO: Add your code
|
| 29 |
-
|
| 30 |
|
| 31 |
```python
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
...
|
| 36 |
```
|
|
|
|
| 25 |
using the [stable-baselines3 library](https://github.com/DLR-RM/stable-baselines3).
|
| 26 |
|
| 27 |
## Usage (with Stable-baselines3)
|
|
|
|
|
|
|
| 28 |
|
| 29 |
```python
|
| 30 |
+
model = A2C(policy = "MlpPolicy",
|
| 31 |
+
env = env,
|
| 32 |
+
gae_lambda = 0.9,
|
| 33 |
+
gamma = 0.99,
|
| 34 |
+
learning_rate = 0.00096,
|
| 35 |
+
max_grad_norm = 0.5,
|
| 36 |
+
n_steps = 8,
|
| 37 |
+
vf_coef = 0.4,
|
| 38 |
+
ent_coef = 0.0,
|
| 39 |
+
tensorboard_log = "./tensorboard",
|
| 40 |
+
policy_kwargs=dict(
|
| 41 |
+
log_std_init=-2, ortho_init=False),
|
| 42 |
+
normalize_advantage=False,
|
| 43 |
+
use_rms_prop= True,
|
| 44 |
+
use_sde= True,
|
| 45 |
+
verbose=1)
|
| 46 |
...
|
| 47 |
```
|