Skip to content

Commit da10cab

Browse files
Merge pull request #16 from mohammadzainabbas/dev
Dev
2 parents bd66db8 + 136f26b commit da10cab

File tree

9 files changed

+19302
-39
lines changed

9 files changed

+19302
-39
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ You will get the following output files:
8484

8585
#### 2.4. 🎉 Results 🎉
8686

87-
The following plot shows the training progress of the agent:
87+
The following plot shows the comparsion between training progress of `Proximal policy optimization (PPO)`, `Evolution Strategy (ES)` and `Augmented Random Search (ARS)` algorithms:
88+
89+
<p align="center">
90+
<img src="https://github.com/mohammadzainabbas/Reinforcement-Learning-CS/blob/main/results/output.jpeg?raw=true" width="500" height="300">
91+
</p>
8892

89-
![Training progress plot](https://github.com/mohammadzainabbas/Reinforcement-Learning-CS/blob/main/results/output.jpeg?raw=true)

docs/SETUP_ENV.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ mamba env create -n reinforcement_learning -f docs/config/reinforcement_learning
3737
Before starting further, make sure that you have `conda` (Anaconda) installed (otherwise, create a new env via [virutalenv](#new-env-virtualenv)). We will create a new enviornment for the purpose of our labs:
3838

3939
```bash
40-
conda create -n reinforcement_learning python=3 -y
40+
conda create -n reinforcement_learning python=3.10 -y
4141
```
4242

4343
and activate it

docs/config/reinforcement_learning_env.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ channels:
33
- apple
44
- conda-forge
55
dependencies:
6-
- python=3 ## specify desired version
6+
- python=3.10 ## specify desired version
77
- pip
88
- tensorflow-deps
99
- ipykernel ## for use with Jupyter
@@ -15,6 +15,6 @@ dependencies:
1515
- torch ## if you want to use pytorch as well
1616
- torchvision ## if you want to use pytorch as well
1717
- matplotlib ## if you want to plot your data
18-
- plotly ## if you want to plot your data
19-
- pandas
20-
- numpy
18+
- brax
19+
- flax
20+
- jax

results/data/final_600M.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

results/data/sys_1K.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

results/data/sys_400M.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

results/data/sys_5M.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

results/index.html

Lines changed: 19275 additions & 26 deletions
Large diffs are not rendered by default.

src/generate_results.py

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
from json import loads
2-
from typing import Union, Dict, Any
1+
from typing import Union
32
from pathlib import Path
43
from os.path import join
54

@@ -12,10 +11,18 @@
1211
margin: 0;
1312
padding: 0;
1413
}
15-
#brax-viewer {
14+
15+
h3 {
16+
display: flex;
17+
justify-content: center;
18+
padding-top: 18px;
19+
}
20+
21+
[id^='brax-viewer-'] {
1622
margin: 0;
1723
padding: 0;
18-
height: 100vh;
24+
height: 50vh;
25+
padding-bottom: 2.5%;
1926
}
2027
</style>
2128
</head>
@@ -69,9 +76,9 @@
6976
</html>
7077
"""
7178

72-
def read_json(path: Union[str, Path]) -> Dict[str, Any]:
79+
def read_json(path: Union[str, Path]) -> str:
7380
with open(path, "r") as f:
74-
return loads(f.read())
81+
return f.read()
7582

7683
def main() -> None:
7784
# Read the JSON files

0 commit comments

Comments
 (0)