mirror of
https://github.com/wassname/DeepRL.git
synced 2026-09-09 11:13:47 +08:00
Major refactor
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
#######################################################################
|
||||
# Copyright (C) 2017 Shangtong Zhang(zhangshangtong.cpp@gmail.com) #
|
||||
# Permission given to modify the code as long as you keep this #
|
||||
# declaration at the top #
|
||||
#######################################################################
|
||||
|
||||
class Config:
|
||||
def __init__(self):
|
||||
self.task_fn = None
|
||||
self.optimizer_fn = None
|
||||
self.network_fn = None
|
||||
self.policy_fn = None
|
||||
self.replay_fn = None
|
||||
self.discount = 0.99
|
||||
self.target_network_update_freq = 0
|
||||
self.max_episode_length = 0
|
||||
self.exploration_steps = 0
|
||||
self.logger = None
|
||||
self.history_length = 1
|
||||
self.test_interval = 100
|
||||
self.test_repetitions = 50
|
||||
self.double_q = False
|
||||
self.tag = 'vanilla'
|
||||
self.num_workers = 1
|
||||
self.worker = None
|
||||
self.update_interval = 1
|
||||
self.gradient_clip = 40
|
||||
self.entropy_weight = 0.01
|
||||
self.gae_tau = 1.0
|
||||
Reference in New Issue
Block a user