mirror of
https://github.com/wassname/kair_algorithms_draft.git
synced 2026-10-30 13:20:08 +08:00
Refactoring demo collector (#56)
This commit is contained in:
1 parent
055d97661e
commit
18d6824191
19 files changed
+972
-20
No files matched your search
@@ -80,7 +80,7 @@ class AbstractAgent(object):
|
||||
path = os.path.join("./save/" + save_name + "_ep_" + str(n_episode) + ".pt")
|
||||
torch.save(params, path)
|
||||
|
||||
print ("[INFO] Saved the model and optimizer to", path)
|
||||
print("[INFO] Saved the model and optimizer to", path)
|
||||
|
||||
@abstractmethod
|
||||
def write_log(self, *args):
|
||||
@@ -109,7 +109,7 @@ class AbstractAgent(object):
|
||||
score += reward
|
||||
step += 1
|
||||
|
||||
print (
|
||||
print(
|
||||
"[INFO] episode %d\tstep: %d\ttotal score: %d"
|
||||
% (i_episode, step, score)
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user