Skip to content

Commit a26442c

Browse files
committed
Add doc strings as per review
1 parent 7984d39 commit a26442c

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

src/algorithms/a2c.py

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,6 @@ def __init__(self, config: A2CConfig, a2c_net: A2CNet):
7676
self.memory = []
7777
self.name = "A2C"
7878

79-
def _optimize_model(self):
80-
pass
81-
8279
def select_action(self, env: Env, observation: State) -> Action:
8380
"""
8481
Select an action
@@ -96,12 +93,25 @@ def update_policy_network(self):
9693
pass
9794

9895
def calculate_loss(self):
96+
"""
97+
Calculate the loss
98+
:return:
99+
"""
99100
pass
100101

101102
def accummulate_batch(self):
103+
"""
104+
Accumulate the memory items
105+
:return:
106+
"""
102107
pass
103108

104109
def train(self, env: Env) -> None:
110+
"""
111+
Train the agent on the given environment
112+
:param env:
113+
:return:
114+
"""
105115

106116
# reset the environment and obtain the
107117
# the time step

0 commit comments

Comments
 (0)