Skip to content

Commit e5f6329

Browse files
committed
#54 Update doc strings
1 parent 7a62688 commit e5f6329

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ The images below show the overall running distortion average and running reward
5656

5757
The 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

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ numpy==1.20.2
22
pandas==1.1.3
33
gym==0.18.0
44
textdistance==4.2.0
5+
numpydoc==1.2

src/algorithms/q_learning.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@
1414

1515

1616
class 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

2725
class 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

0 commit comments

Comments
 (0)