Commit
•
cf895f4
1
Parent(s):
32e1190
Initial commit
Browse files- .gitattributes +1 -0
- README.md +75 -0
- a2c-CartPole-v1.zip +3 -0
- a2c-CartPole-v1/_stable_baselines3_version +1 -0
- a2c-CartPole-v1/data +113 -0
- a2c-CartPole-v1/policy.optimizer.pth +3 -0
- a2c-CartPole-v1/policy.pth +3 -0
- a2c-CartPole-v1/pytorch_variables.pth +3 -0
- a2c-CartPole-v1/system_info.txt +9 -0
- args.yml +83 -0
- config.yml +9 -0
- env_kwargs.yml +1 -0
- replay.mp4 +3 -0
- results.json +1 -0
- train_eval_metrics.zip +3 -0
.gitattributes
CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
+
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: stable-baselines3
|
3 |
+
tags:
|
4 |
+
- CartPole-v1
|
5 |
+
- deep-reinforcement-learning
|
6 |
+
- reinforcement-learning
|
7 |
+
- stable-baselines3
|
8 |
+
model-index:
|
9 |
+
- name: A2C
|
10 |
+
results:
|
11 |
+
- task:
|
12 |
+
type: reinforcement-learning
|
13 |
+
name: reinforcement-learning
|
14 |
+
dataset:
|
15 |
+
name: CartPole-v1
|
16 |
+
type: CartPole-v1
|
17 |
+
metrics:
|
18 |
+
- type: mean_reward
|
19 |
+
value: 500.00 +/- 0.00
|
20 |
+
name: mean_reward
|
21 |
+
verified: false
|
22 |
+
---
|
23 |
+
|
24 |
+
# **A2C** Agent playing **CartPole-v1**
|
25 |
+
This is a trained model of a **A2C** agent playing **CartPole-v1**
|
26 |
+
using the [stable-baselines3 library](https://github.com/DLR-RM/stable-baselines3)
|
27 |
+
and the [RL Zoo](https://github.com/DLR-RM/rl-baselines3-zoo).
|
28 |
+
|
29 |
+
The RL Zoo is a training framework for Stable Baselines3
|
30 |
+
reinforcement learning agents,
|
31 |
+
with hyperparameter optimization and pre-trained agents included.
|
32 |
+
|
33 |
+
## Usage (with SB3 RL Zoo)
|
34 |
+
|
35 |
+
RL Zoo: https://github.com/DLR-RM/rl-baselines3-zoo<br/>
|
36 |
+
SB3: https://github.com/DLR-RM/stable-baselines3<br/>
|
37 |
+
SB3 Contrib: https://github.com/Stable-Baselines-Team/stable-baselines3-contrib
|
38 |
+
|
39 |
+
Install the RL Zoo (with SB3 and SB3-Contrib):
|
40 |
+
```bash
|
41 |
+
pip install rl_zoo3
|
42 |
+
```
|
43 |
+
|
44 |
+
```
|
45 |
+
# Download model and save it into the logs/ folder
|
46 |
+
python -m rl_zoo3.load_from_hub --algo a2c --env CartPole-v1 -orga SpartanLondoner -f logs/
|
47 |
+
python -m rl_zoo3.enjoy --algo a2c --env CartPole-v1 -f logs/
|
48 |
+
```
|
49 |
+
|
50 |
+
If you installed the RL Zoo3 via pip (`pip install rl_zoo3`), from anywhere you can do:
|
51 |
+
```
|
52 |
+
python -m rl_zoo3.load_from_hub --algo a2c --env CartPole-v1 -orga SpartanLondoner -f logs/
|
53 |
+
python -m rl_zoo3.enjoy --algo a2c --env CartPole-v1 -f logs/
|
54 |
+
```
|
55 |
+
|
56 |
+
## Training (with the RL Zoo)
|
57 |
+
```
|
58 |
+
python -m rl_zoo3.train --algo a2c --env CartPole-v1 -f logs/
|
59 |
+
# Upload the model and generate video (when possible)
|
60 |
+
python -m rl_zoo3.push_to_hub --algo a2c --env CartPole-v1 -f logs/ -orga SpartanLondoner
|
61 |
+
```
|
62 |
+
|
63 |
+
## Hyperparameters
|
64 |
+
```python
|
65 |
+
OrderedDict([('ent_coef', 0.0),
|
66 |
+
('n_envs', 8),
|
67 |
+
('n_timesteps', 500000.0),
|
68 |
+
('policy', 'MlpPolicy'),
|
69 |
+
('normalize', False)])
|
70 |
+
```
|
71 |
+
|
72 |
+
# Environment Arguments
|
73 |
+
```python
|
74 |
+
{'render_mode': 'rgb_array'}
|
75 |
+
```
|
a2c-CartPole-v1.zip
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e7b833697aa3f410c2f7e66d1a28fd8580a6bdef0de11cf95da51cc9ba19c98f
|
3 |
+
size 98238
|
a2c-CartPole-v1/_stable_baselines3_version
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
2.2.1
|
a2c-CartPole-v1/data
ADDED
@@ -0,0 +1,113 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"policy_class": {
|
3 |
+
":type:": "<class 'abc.ABCMeta'>",
|
4 |
+
":serialized:": "gAWVOwAAAAAAAACMIXN0YWJsZV9iYXNlbGluZXMzLmNvbW1vbi5wb2xpY2llc5SMEUFjdG9yQ3JpdGljUG9saWN5lJOULg==",
|
5 |
+
"__module__": "stable_baselines3.common.policies",
|
6 |
+
"__doc__": "\n Policy class for actor-critic algorithms (has both policy and value prediction).\n Used by A2C, PPO and the likes.\n\n :param observation_space: Observation space\n :param action_space: Action space\n :param lr_schedule: Learning rate schedule (could be constant)\n :param net_arch: The specification of the policy and value networks.\n :param activation_fn: Activation function\n :param ortho_init: Whether to use or not orthogonal initialization\n :param use_sde: Whether to use State Dependent Exploration or not\n :param log_std_init: Initial value for the log standard deviation\n :param full_std: Whether to use (n_features x n_actions) parameters\n for the std instead of only (n_features,) when using gSDE\n :param use_expln: Use ``expln()`` function instead of ``exp()`` to ensure\n a positive standard deviation (cf paper). It allows to keep variance\n above zero and prevent it from growing too fast. In practice, ``exp()`` is usually enough.\n :param squash_output: Whether to squash the output using a tanh function,\n this allows to ensure boundaries when using gSDE.\n :param features_extractor_class: Features extractor to use.\n :param features_extractor_kwargs: Keyword arguments\n to pass to the features extractor.\n :param share_features_extractor: If True, the features extractor is shared between the policy and value networks.\n :param normalize_images: Whether to normalize images or not,\n dividing by 255.0 (True by default)\n :param optimizer_class: The optimizer to use,\n ``th.optim.Adam`` by default\n :param optimizer_kwargs: Additional keyword arguments,\n excluding the learning rate, to pass to the optimizer\n ",
|
7 |
+
"__init__": "<function ActorCriticPolicy.__init__ at 0x7bf86c107640>",
|
8 |
+
"_get_constructor_parameters": "<function ActorCriticPolicy._get_constructor_parameters at 0x7bf86c1076d0>",
|
9 |
+
"reset_noise": "<function ActorCriticPolicy.reset_noise at 0x7bf86c107760>",
|
10 |
+
"_build_mlp_extractor": "<function ActorCriticPolicy._build_mlp_extractor at 0x7bf86c1077f0>",
|
11 |
+
"_build": "<function ActorCriticPolicy._build at 0x7bf86c107880>",
|
12 |
+
"forward": "<function ActorCriticPolicy.forward at 0x7bf86c107910>",
|
13 |
+
"extract_features": "<function ActorCriticPolicy.extract_features at 0x7bf86c1079a0>",
|
14 |
+
"_get_action_dist_from_latent": "<function ActorCriticPolicy._get_action_dist_from_latent at 0x7bf86c107a30>",
|
15 |
+
"_predict": "<function ActorCriticPolicy._predict at 0x7bf86c107ac0>",
|
16 |
+
"evaluate_actions": "<function ActorCriticPolicy.evaluate_actions at 0x7bf86c107b50>",
|
17 |
+
"get_distribution": "<function ActorCriticPolicy.get_distribution at 0x7bf86c107be0>",
|
18 |
+
"predict_values": "<function ActorCriticPolicy.predict_values at 0x7bf86c107c70>",
|
19 |
+
"__abstractmethods__": "frozenset()",
|
20 |
+
"_abc_impl": "<_abc._abc_data object at 0x7bf86c33ba40>"
|
21 |
+
},
|
22 |
+
"verbose": 1,
|
23 |
+
"policy_kwargs": {
|
24 |
+
":type:": "<class 'dict'>",
|
25 |
+
":serialized:": "gAWVgQAAAAAAAAB9lCiMD29wdGltaXplcl9jbGFzc5SME3RvcmNoLm9wdGltLnJtc3Byb3CUjAdSTVNwcm9wlJOUjBBvcHRpbWl6ZXJfa3dhcmdzlH2UKIwFYWxwaGGURz/vrhR64UeujANlcHOURz7k+LWI42jxjAx3ZWlnaHRfZGVjYXmUSwB1dS4=",
|
26 |
+
"optimizer_class": "<class 'torch.optim.rmsprop.RMSprop'>",
|
27 |
+
"optimizer_kwargs": {
|
28 |
+
"alpha": 0.99,
|
29 |
+
"eps": 1e-05,
|
30 |
+
"weight_decay": 0
|
31 |
+
}
|
32 |
+
},
|
33 |
+
"num_timesteps": 1000000,
|
34 |
+
"_total_timesteps": 1000000,
|
35 |
+
"_num_timesteps_at_start": 0,
|
36 |
+
"seed": 0,
|
37 |
+
"action_noise": null,
|
38 |
+
"start_time": 1700763613273346250,
|
39 |
+
"learning_rate": 0.0007,
|
40 |
+
"tensorboard_log": null,
|
41 |
+
"_last_obs": null,
|
42 |
+
"_last_episode_starts": {
|
43 |
+
":type:": "<class 'numpy.ndarray'>",
|
44 |
+
":serialized:": "gAWVewAAAAAAAACMEm51bXB5LmNvcmUubnVtZXJpY5SMC19mcm9tYnVmZmVylJOUKJYIAAAAAAAAAAAAAAAAAAAAlIwFbnVtcHmUjAVkdHlwZZSTlIwCYjGUiYiHlFKUKEsDjAF8lE5OTkr/////Sv////9LAHSUYksIhZSMAUOUdJRSlC4="
|
45 |
+
},
|
46 |
+
"_last_original_obs": null,
|
47 |
+
"_episode_num": 0,
|
48 |
+
"use_sde": false,
|
49 |
+
"sde_sample_freq": -1,
|
50 |
+
"_current_progress_remaining": 0.0,
|
51 |
+
"_stats_window_size": 100,
|
52 |
+
"ep_info_buffer": {
|
53 |
+
":type:": "<class 'collections.deque'>",
|
54 |
+
":serialized:": "gAWVRAwAAAAAAACMC2NvbGxlY3Rpb25zlIwFZGVxdWWUk5QpS2SGlFKUKH2UKIwBcpRHQH9AAAAAAACMAWyUTfQBjAF0lEdAeSpqU/wAl3V9lChoBkdAf0AAAAAAAGgHTfQBaAhHQHkqh//echF1fZQoaAZHQH9AAAAAAABoB030AWgIR0B5TU/u9eyBdX2UKGgGR0B/QAAAAAAAaAdN9AFoCEdAeVPokAxSHnV9lChoBkdAf0AAAAAAAGgHTfQBaAhHQHlYsWTHKfZ1fZQoaAZHQH9AAAAAAABoB030AWgIR0B5WOr5qM3qdX2UKGgGR0B/QAAAAAAAaAdN9AFoCEdAeVowu/UONHV9lChoBkdAf0AAAAAAAGgHTfQBaAhHQHlcQmqo60Z1fZQoaAZHQH9AAAAAAABoB030AWgIR0B5XXDpC8e0dX2UKGgGR0B/QA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AAAAAAAaAdN9AFoCEdAelt1pj+aSnV9lChoBkdAf0AAAAAAAGgHTfQBaAhHQHpcpk078vV1fZQoaAZHQH9AAAAAAABoB030AWgIR0B6XMPsiSq3dX2UKGgGR0B/QAAAAAAAaAdN9AFoCEdAel/jR2KVIXV9lChoBkdAf0AAAAAAAGgHTfQBaAhHQHpmGnbZezF1fZQoaAZHQH9AAAAAAABoB030AWgIR0B6auRq46OpdX2UKGgGR0B/QAAAAAAAaAdN9AFoCEdAemsYHPeHi3V9lChoBkdAf0AAAAAAAGgHTfQBaAhHQHpsSncclw91fZQoaAZHQH9AAAAAAABoB030AWgIR0B6bkXP7el9dX2UKGgGR0B/QAAAAAAAaAdN9AFoCEdAem9wtJ4B3nV9lChoBkdAf0AAAAAAAGgHTfQBaAhHQHpvjpX6qKh1fZQoaAZHQH9AAAAAAABoB030AWgIR0B6crhn8KoidX2UKGgGR0B/QAAAAAAAaAdN9AFoCEdAeni3QUpNK3VlLg=="
|
55 |
+
},
|
56 |
+
"ep_success_buffer": {
|
57 |
+
":type:": "<class 'collections.deque'>",
|
58 |
+
":serialized:": "gAWVIAAAAAAAAACMC2NvbGxlY3Rpb25zlIwFZGVxdWWUk5QpS2SGlFKULg=="
|
59 |
+
},
|
60 |
+
"_n_updates": 25000,
|
61 |
+
"observation_space": {
|
62 |
+
":type:": "<class 'gymnasium.spaces.box.Box'>",
|
63 |
+
":serialized:": "gAWVFgIAAAAAAACMFGd5bW5hc2l1bS5zcGFjZXMuYm94lIwDQm94lJOUKYGUfZQojAVkdHlwZZSMBW51bXB5lIwFZHR5cGWUk5SMAmY0lImIh5RSlChLA4wBPJROTk5K/////0r/////SwB0lGKMDWJvdW5kZWRfYmVsb3eUjBJudW1weS5jb3JlLm51bWVyaWOUjAtfZnJvbWJ1ZmZlcpSTlCiWBAAAAAAAAAABAQEBlGgIjAJiMZSJiIeUUpQoSwOMAXyUTk5OSv////9K/////0sAdJRiSwSFlIwBQ5R0lFKUjA1ib3VuZGVkX2Fib3ZllGgRKJYEAAAAAAAAAAEBAQGUaBVLBIWUaBl0lFKUjAZfc2hhcGWUSwSFlIwDbG93lGgRKJYQAAAAAAAAAJqZmcD//3//UHfWvv//f/+UaAtLBIWUaBl0lFKUjARoaWdolGgRKJYQAAAAAAAAAJqZmUD//39/UHfWPv//f3+UaAtLBIWUaBl0lFKUjAhsb3dfcmVwcpSMPVstNC44MDAwMDAyZSswMCAtMy40MDI4MjM1ZSszOCAtNC4xODg3OTAzZS0wMSAtMy40MDI4MjM1ZSszOF2UjAloaWdoX3JlcHKUjDlbNC44MDAwMDAyZSswMCAzLjQwMjgyMzVlKzM4IDQuMTg4NzkwM2UtMDEgMy40MDI4MjM1ZSszOF2UjApfbnBfcmFuZG9tlE51Yi4=",
|
64 |
+
"dtype": "float32",
|
65 |
+
"bounded_below": "[ True True True True]",
|
66 |
+
"bounded_above": "[ True True True True]",
|
67 |
+
"_shape": [
|
68 |
+
4
|
69 |
+
],
|
70 |
+
"low": "[-4.8000002e+00 -3.4028235e+38 -4.1887903e-01 -3.4028235e+38]",
|
71 |
+
"high": "[4.8000002e+00 3.4028235e+38 4.1887903e-01 3.4028235e+38]",
|
72 |
+
"low_repr": "[-4.8000002e+00 -3.4028235e+38 -4.1887903e-01 -3.4028235e+38]",
|
73 |
+
"high_repr": "[4.8000002e+00 3.4028235e+38 4.1887903e-01 3.4028235e+38]",
|
74 |
+
"_np_random": null
|
75 |
+
},
|
76 |
+
"action_space": {
|
77 |
+
":type:": "<class 'gymnasium.spaces.discrete.Discrete'>",
|
78 |
+
":serialized:": "gAWVpQEAAAAAAACMGWd5bW5hc2l1bS5zcGFjZXMuZGlzY3JldGWUjAhEaXNjcmV0ZZSTlCmBlH2UKIwBbpSMFW51bXB5LmNvcmUubXVsdGlhcnJheZSMBnNjYWxhcpSTlIwFbnVtcHmUjAVkdHlwZZSTlIwCaTiUiYiHlFKUKEsDjAE8lE5OTkr/////Sv////9LAHSUYkMIAgAAAAAAAACUhpRSlIwFc3RhcnSUaAhoDkMIAAAAAAAAAACUhpRSlIwGX3NoYXBllCmMBWR0eXBllGgLjAJpOJSJiIeUUpQoSwNoD05OTkr/////Sv////9LAHSUYowKX25wX3JhbmRvbZSMFG51bXB5LnJhbmRvbS5fcGlja2xllIwQX19nZW5lcmF0b3JfY3RvcpSTlIwFUENHNjSUhZRSlH2UKIwNYml0X2dlbmVyYXRvcpSMBVBDRzY0lIwFc3RhdGWUfZQoaCiKEONhlaa3XlgJLUWWWTS1oRqMA2luY5SKEKlzeES8M4FYghr3OtvajUF1jApoYXNfdWludDMylEsAjAh1aW50ZWdlcpRLAHVidWIu",
|
79 |
+
"n": "2",
|
80 |
+
"start": "0",
|
81 |
+
"_shape": [],
|
82 |
+
"dtype": "int64",
|
83 |
+
"_np_random": "Generator(PCG64)"
|
84 |
+
},
|
85 |
+
"n_envs": 1,
|
86 |
+
"n_steps": 5,
|
87 |
+
"gamma": 0.99,
|
88 |
+
"gae_lambda": 1.0,
|
89 |
+
"ent_coef": 0.0,
|
90 |
+
"vf_coef": 0.5,
|
91 |
+
"max_grad_norm": 0.5,
|
92 |
+
"rollout_buffer_class": {
|
93 |
+
":type:": "<class 'abc.ABCMeta'>",
|
94 |
+
":serialized:": "gAWVNgAAAAAAAACMIHN0YWJsZV9iYXNlbGluZXMzLmNvbW1vbi5idWZmZXJzlIwNUm9sbG91dEJ1ZmZlcpSTlC4=",
|
95 |
+
"__module__": "stable_baselines3.common.buffers",
|
96 |
+
"__annotations__": "{'observations': <class 'numpy.ndarray'>, 'actions': <class 'numpy.ndarray'>, 'rewards': <class 'numpy.ndarray'>, 'advantages': <class 'numpy.ndarray'>, 'returns': <class 'numpy.ndarray'>, 'episode_starts': <class 'numpy.ndarray'>, 'log_probs': <class 'numpy.ndarray'>, 'values': <class 'numpy.ndarray'>}",
|
97 |
+
"__doc__": "\n Rollout buffer used in on-policy algorithms like A2C/PPO.\n It corresponds to ``buffer_size`` transitions collected\n using the current policy.\n This experience will be discarded after the policy update.\n In order to use PPO objective, we also store the current value of each state\n and the log probability of each taken action.\n\n The term rollout here refers to the model-free notion and should not\n be used with the concept of rollout used in model-based RL or planning.\n Hence, it is only involved in policy and value function training but not action selection.\n\n :param buffer_size: Max number of element in the buffer\n :param observation_space: Observation space\n :param action_space: Action space\n :param device: PyTorch device\n :param gae_lambda: Factor for trade-off of bias vs variance for Generalized Advantage Estimator\n Equivalent to classic advantage when set to 1.\n :param gamma: Discount factor\n :param n_envs: Number of parallel environments\n ",
|
98 |
+
"__init__": "<function RolloutBuffer.__init__ at 0x7bf86c266440>",
|
99 |
+
"reset": "<function RolloutBuffer.reset at 0x7bf86c2664d0>",
|
100 |
+
"compute_returns_and_advantage": "<function RolloutBuffer.compute_returns_and_advantage at 0x7bf86c266560>",
|
101 |
+
"add": "<function RolloutBuffer.add at 0x7bf86c2665f0>",
|
102 |
+
"get": "<function RolloutBuffer.get at 0x7bf86c266680>",
|
103 |
+
"_get_samples": "<function RolloutBuffer._get_samples at 0x7bf86c266710>",
|
104 |
+
"__abstractmethods__": "frozenset()",
|
105 |
+
"_abc_impl": "<_abc._abc_data object at 0x7bf86c25a880>"
|
106 |
+
},
|
107 |
+
"rollout_buffer_kwargs": {},
|
108 |
+
"normalize_advantage": false,
|
109 |
+
"lr_schedule": {
|
110 |
+
":type:": "<class 'function'>",
|
111 |
+
":serialized:": "gAWVxQIAAAAAAACMF2Nsb3VkcGlja2xlLmNsb3VkcGlja2xllIwOX21ha2VfZnVuY3Rpb26Uk5QoaACMDV9idWlsdGluX3R5cGWUk5SMCENvZGVUeXBllIWUUpQoSwFLAEsASwFLAUsTQwSIAFMAlE6FlCmMAV+UhZSMSS91c3IvbG9jYWwvbGliL3B5dGhvbjMuMTAvZGlzdC1wYWNrYWdlcy9zdGFibGVfYmFzZWxpbmVzMy9jb21tb24vdXRpbHMucHmUjARmdW5jlEuDQwIEAZSMA3ZhbJSFlCl0lFKUfZQojAtfX3BhY2thZ2VfX5SMGHN0YWJsZV9iYXNlbGluZXMzLmNvbW1vbpSMCF9fbmFtZV9flIwec3RhYmxlX2Jhc2VsaW5lczMuY29tbW9uLnV0aWxzlIwIX19maWxlX1+UjEkvdXNyL2xvY2FsL2xpYi9weXRob24zLjEwL2Rpc3QtcGFja2FnZXMvc3RhYmxlX2Jhc2VsaW5lczMvY29tbW9uL3V0aWxzLnB5lHVOTmgAjBBfbWFrZV9lbXB0eV9jZWxslJOUKVKUhZR0lFKUjBxjbG91ZHBpY2tsZS5jbG91ZHBpY2tsZV9mYXN0lIwSX2Z1bmN0aW9uX3NldHN0YXRllJOUaB99lH2UKGgWaA2MDF9fcXVhbG5hbWVfX5SMGWNvbnN0YW50X2ZuLjxsb2NhbHM+LmZ1bmOUjA9fX2Fubm90YXRpb25zX1+UfZSMDl9fa3dkZWZhdWx0c19flE6MDF9fZGVmYXVsdHNfX5ROjApfX21vZHVsZV9flGgXjAdfX2RvY19flE6MC19fY2xvc3VyZV9flGgAjApfbWFrZV9jZWxslJOURz9G8AaNuLrHhZRSlIWUjBdfY2xvdWRwaWNrbGVfc3VibW9kdWxlc5RdlIwLX19nbG9iYWxzX1+UfZR1hpSGUjAu"
|
112 |
+
}
|
113 |
+
}
|
a2c-CartPole-v1/policy.optimizer.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3e3bfe4e47bdafd9592e6f10eb8f7eac73c37122b28550a4c59a8bcc57bdfa4a
|
3 |
+
size 40498
|
a2c-CartPole-v1/policy.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2d863948f0821e58bff40c2fbb5307e167d5ac2307f9539d99651fafc933300e
|
3 |
+
size 41202
|
a2c-CartPole-v1/pytorch_variables.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0c35cea3b2e60fb5e7e162d3592df775cd400e575a31c72f359fb9e654ab00c5
|
3 |
+
size 864
|
a2c-CartPole-v1/system_info.txt
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
- OS: Linux-5.15.120+-x86_64-with-glibc2.35 # 1 SMP Wed Aug 30 11:19:59 UTC 2023
|
2 |
+
- Python: 3.10.12
|
3 |
+
- Stable-Baselines3: 2.2.1
|
4 |
+
- PyTorch: 2.1.0+cu118
|
5 |
+
- GPU Enabled: True
|
6 |
+
- Numpy: 1.23.5
|
7 |
+
- Cloudpickle: 2.2.1
|
8 |
+
- Gymnasium: 0.29.1
|
9 |
+
- OpenAI Gym: 0.26.2
|
args.yml
ADDED
@@ -0,0 +1,83 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
!!python/object/apply:collections.OrderedDict
|
2 |
+
- - - algo
|
3 |
+
- a2c
|
4 |
+
- - conf_file
|
5 |
+
- null
|
6 |
+
- - device
|
7 |
+
- auto
|
8 |
+
- - env
|
9 |
+
- CartPole-v1
|
10 |
+
- - env_kwargs
|
11 |
+
- null
|
12 |
+
- - eval_env_kwargs
|
13 |
+
- null
|
14 |
+
- - eval_episodes
|
15 |
+
- 5
|
16 |
+
- - eval_freq
|
17 |
+
- 25000
|
18 |
+
- - gym_packages
|
19 |
+
- []
|
20 |
+
- - hyperparams
|
21 |
+
- null
|
22 |
+
- - log_folder
|
23 |
+
- logs
|
24 |
+
- - log_interval
|
25 |
+
- -1
|
26 |
+
- - max_total_trials
|
27 |
+
- null
|
28 |
+
- - n_eval_envs
|
29 |
+
- 1
|
30 |
+
- - n_evaluations
|
31 |
+
- null
|
32 |
+
- - n_jobs
|
33 |
+
- 1
|
34 |
+
- - n_startup_trials
|
35 |
+
- 10
|
36 |
+
- - n_timesteps
|
37 |
+
- 1000000
|
38 |
+
- - n_trials
|
39 |
+
- 500
|
40 |
+
- - no_optim_plots
|
41 |
+
- false
|
42 |
+
- - num_threads
|
43 |
+
- -1
|
44 |
+
- - optimization_log_path
|
45 |
+
- null
|
46 |
+
- - optimize_hyperparameters
|
47 |
+
- false
|
48 |
+
- - progress
|
49 |
+
- false
|
50 |
+
- - pruner
|
51 |
+
- median
|
52 |
+
- - sampler
|
53 |
+
- tpe
|
54 |
+
- - save_freq
|
55 |
+
- -1
|
56 |
+
- - save_replay_buffer
|
57 |
+
- false
|
58 |
+
- - seed
|
59 |
+
- 3867714060
|
60 |
+
- - storage
|
61 |
+
- null
|
62 |
+
- - study_name
|
63 |
+
- null
|
64 |
+
- - tensorboard_log
|
65 |
+
- ''
|
66 |
+
- - track
|
67 |
+
- false
|
68 |
+
- - trained_agent
|
69 |
+
- ''
|
70 |
+
- - truncate_last_trajectory
|
71 |
+
- true
|
72 |
+
- - uuid
|
73 |
+
- false
|
74 |
+
- - vec_env
|
75 |
+
- dummy
|
76 |
+
- - verbose
|
77 |
+
- 1
|
78 |
+
- - wandb_entity
|
79 |
+
- null
|
80 |
+
- - wandb_project_name
|
81 |
+
- sb3
|
82 |
+
- - wandb_tags
|
83 |
+
- []
|
config.yml
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
!!python/object/apply:collections.OrderedDict
|
2 |
+
- - - ent_coef
|
3 |
+
- 0.0
|
4 |
+
- - n_envs
|
5 |
+
- 8
|
6 |
+
- - n_timesteps
|
7 |
+
- 500000.0
|
8 |
+
- - policy
|
9 |
+
- MlpPolicy
|
env_kwargs.yml
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
render_mode: rgb_array
|
replay.mp4
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ee7e7e788caa0f2d08422ec2c28d458ab5462b9f7c0d763c017887491f3a0929
|
3 |
+
size 51945
|
results.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"mean_reward": 500.0, "std_reward": 0.0, "is_deterministic": true, "n_eval_episodes": 10, "eval_datetime": "2023-11-23T18:49:09.242457"}
|
train_eval_metrics.zip
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ff50aa0f794b0e34534f46ae02c9790a5301d785337c0c456bab4884b377588a
|
3 |
+
size 60931
|