Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -9,25 +9,33 @@ tags:
|
|
| 9 |
pipeline_tag: reinforcement-learning
|
| 10 |
---
|
| 11 |
|
| 12 |
-
# LunarLander — 394 params,
|
| 13 |
|
| 14 |
-
A tiny neural network (394 parameters)
|
| 15 |
Weights: **1.5 KB**.
|
| 16 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
## Demo
|
| 18 |
|
| 19 |
<video src="https://huggingface.co/Dimitrius174/lunar-lander-394-params/resolve/main/videos/lunar_lander_394_all.mp4" controls width="600"></video>
|
| 20 |
|
| 21 |
## Architecture
|
| 22 |
|
| 23 |
-
|
| 24 |
-
class TinyNN(torch.nn.Module):
|
| 25 |
-
def __init__(self):
|
| 26 |
-
super().__init__()
|
| 27 |
-
self.enc = torch.nn.Linear(8, 30)
|
| 28 |
-
self.cls = torch.nn.Linear(30, 4)
|
| 29 |
-
def forward(self, x):
|
| 30 |
-
return self.cls(torch.relu(self.enc(x)))
|
| 31 |
-
```
|
| 32 |
|
| 33 |
Params: 8x30 + 30 + 30x4 + 4 = **394**
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
pipeline_tag: reinforcement-learning
|
| 10 |
---
|
| 11 |
|
| 12 |
+
# LunarLander — 394 params, 95% full landings
|
| 13 |
|
| 14 |
+
A tiny neural network (394 parameters) solving LunarLander-v2.
|
| 15 |
Weights: **1.5 KB**.
|
| 16 |
|
| 17 |
+
## Performance
|
| 18 |
+
|
| 19 |
+
| Metric | Value |
|
| 20 |
+
|--------|-------|
|
| 21 |
+
| Params | 394 |
|
| 22 |
+
| Full landings (reward >= 200) | **95/100** |
|
| 23 |
+
| Average reward | **258.8** |
|
| 24 |
+
| Median reward | **265.8** |
|
| 25 |
+
| Best reward | **310.9** |
|
| 26 |
+
| Crashes (reward < 100) | 3/100 |
|
| 27 |
+
| Weights size | 1.5 KB |
|
| 28 |
+
|
| 29 |
## Demo
|
| 30 |
|
| 31 |
<video src="https://huggingface.co/Dimitrius174/lunar-lander-394-params/resolve/main/videos/lunar_lander_394_all.mp4" controls width="600"></video>
|
| 32 |
|
| 33 |
## Architecture
|
| 34 |
|
| 35 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
|
| 37 |
Params: 8x30 + 30 + 30x4 + 4 = **394**
|
| 38 |
+
|
| 39 |
+
## Usage
|
| 40 |
+
|
| 41 |
+
|