-
Notifications
You must be signed in to change notification settings - Fork 8
/
config.py
19 lines (18 loc) · 980 Bytes
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
from hp import *
from constants import *
from minimax import searchAgent, greedyEvaluationFunction, smartCowardDfunc, survivorDfunc
agent = "RL"
# agent = "ES"
filename = "rl-pg-linear-r6-1000"
# filename = "rl-ql-linear-r6-1000"
# filename = "es-linear-r6-50"
game_hp = HP(grid_size = 20, max_iter = 3000, discount = 0.9)
rl_hp = RlHp(rl_type = "policy_gradients", radius = 6, filter_actions = False, lambda_ = None, q_type = "linear")
# rl_hp = RlHp(rl_type = "qlearning", radius = 6, filter_actions = False, lambda_ = None, q_type = "linear")
es_hp = EsHp(radius = 6)
depth = lambda s,a : survivorDfunc(s, a , 2, 0.5)
evalFn = greedyEvaluationFunction
num_trials = 1000
opponents = [SmartGreedyAgent, OpportunistAgent]
# opponents = [SmartGreedyAgent, OpportunistAgent, searchAgent("alphabeta", depth, evalFn)]
comment = ""