-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgame.py
30 lines (20 loc) · 774 Bytes
/
game.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
from LearningAlgorithm.actor_critic_algorithm import ActorCriticAlgorithm
# --- Configurations --- #
# Task 2
from configs.triangle_5_table import config as triangle_5_table
from configs.triangle_5_network import config as triangle_5_network
# Task 3
from configs.diamond_4_table import config as diamond_4_table
from configs.diamond_4_network import config as diamond_4_network
# Task 4 (extra boards)
from configs.triangle_4_table import config as triangle_4_table
from configs.triangle_4_network import config as triangle_4_network
from configs.custom import config as custom_config
# read config
config = custom_config
# initialize actor-critic model
algorithm = ActorCriticAlgorithm(config)
# run model
algorithm.run()
# show results
algorithm.plot_results()