File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
contents/5.2_Prioritized_Replay_DQN Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 17
17
18
18
class SumTree (object ):
19
19
"""
20
- This SumTree code is modified version and the original code is from:
20
+ This SumTree code is a modified version and the original code is from:
21
21
https://github.com/jaara/AI-blog/blob/master/SumTree.py
22
22
23
- Story the data with it priority in tree and data frameworks .
23
+ Story data with its priority in the tree .
24
24
"""
25
25
data_pointer = 0
26
26
@@ -88,7 +88,7 @@ def total_p(self):
88
88
89
89
class Memory (object ): # stored as ( s, a, r, s_ ) in SumTree
90
90
"""
91
- This SumTree code is modified version and the original code is from:
91
+ This Memory class is modified based on the original code from:
92
92
https://github.com/jaara/AI-blog/blob/master/Seaquest-DDQN-PER.py
93
93
"""
94
94
epsilon = 0.01 # small amount to avoid zero priority
You can’t perform that action at this time.
0 commit comments