File tree Expand file tree Collapse file tree 3 files changed +8
-7
lines changed
Expand file tree Collapse file tree 3 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ The images below show the overall running distortion average and running reward
5656
5757The following packages are required.
5858
59- - NumPy
59+ - < a href = " # " > NumPy</ a >
6060- <a href =" https://www.sphinx-doc.org/en/master/ " >Sphinx</a >
6161- <a href =" # " >Python Pandas</a >
6262
Original file line number Diff line number Diff line change @@ -2,3 +2,4 @@ numpy==1.20.2
22pandas == 1.1.3
33gym == 0.18.0
44textdistance == 4.2.0
5+ numpydoc == 1.2
Original file line number Diff line number Diff line change 1414
1515
1616class QLearnConfig (object ):
17- """
18- Configuration for Q-learning
19- """
17+ """Configuration for Q-learning"""
2018 def __init__ (self ):
2119 self .gamma : float = 1.0
2220 self .alpha : float = 0.1
@@ -25,11 +23,13 @@ def __init__(self):
2523
2624
2725class QLearning (WithMaxActionMixin ):
28- """
29- Q-learning algorithm implementation
30- """
26+ """Q-learning algorithm implementation"""
3127
3228 def __init__ (self , algo_config : QLearnConfig ):
29+ """
30+ Constructor. Constructs an untrained agent
31+ :param algo_config: Configuration parameters
32+ """
3333 super (QLearning , self ).__init__ ()
3434 self .q_table = {}
3535 self .config = algo_config
You can’t perform that action at this time.
0 commit comments