Skip to content

Commit

Permalink
add Double Q-learning algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
Albert-Z-Guo committed Feb 3, 2020
1 parent 2e3c12e commit 10d6947
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions agents/DDQN.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,7 @@ def __init__(self, state_dim, balance=50000, is_eval=False, model_name=""):
self.action_dim = 3 # hold, buy, sell
self.memory = deque(maxlen=100)
self.buffer_size = 60
self.batch_size = 100
self.target_network_replacement_freq = 10



self.initial_portfolio_value = balance
self.balance = balance
self.inventory = []
Expand Down

0 comments on commit 10d6947

Please sign in to comment.