JoshuaFreeman commited on
Commit
6231d0f
·
verified ·
1 Parent(s): 8ef100a

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +48 -0
README.md ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ tags:
4
+ - reinforcement-learning
5
+ - ppo
6
+ - openfront
7
+ - game-ai
8
+ ---
9
+
10
+ # OpenFront RL Agent
11
+
12
+ PPO-trained agent for [OpenFront.io](https://openfront.io), a multiplayer territory control game.
13
+
14
+ ## Training Details
15
+
16
+ - **Algorithm:** PPO (Proximal Policy Optimization)
17
+ - **Architecture:** Actor-Critic with shared backbone (256→256→128)
18
+ - **Observation dim:** N/A
19
+ - **Max neighbors:** N/A
20
+ - **Maps:** N/A (random per episode)
21
+ - **Opponents:** N/A N/A bots
22
+ - **Parallel envs:** N/A
23
+ - **Learning rate:** N/A
24
+ - **Rollout steps:** N/A
25
+ - **Updates trained:** N/A
26
+ - **Global steps:** N/A
27
+ - **Best mean reward:** N/A
28
+
29
+ ## Final Training Metrics
30
+
31
+ - **Mean reward:** 29.898164215087892
32
+ - **Mean episode length:** 3657.29
33
+ - **Loss:** 0.8671517372131348
34
+
35
+ ## Usage
36
+
37
+ ```python
38
+ from train import ActorCritic
39
+ import torch
40
+
41
+ model = ActorCritic(obs_dim=N/A, max_neighbors=N/A)
42
+ model.load_state_dict(torch.load("best_model.pt", weights_only=True))
43
+ model.eval()
44
+ ```
45
+
46
+ ## Repository
47
+
48
+ Trained from [josh-freeman/openfront-rl](https://github.com/josh-freeman/openfront-rl).