#1963 - Made RLlib and SB3 agents save at the end of each learning session by default using a common file naming format. Also now agents only checkpoint every n and not on the final episode
This commit is contained in:
@@ -186,6 +186,7 @@ class RLlibAgent(AgentSessionABC):
|
|||||||
checkpoint_dir = file
|
checkpoint_dir = file
|
||||||
break
|
break
|
||||||
|
|
||||||
|
# Zip the folder
|
||||||
shutil.make_archive(
|
shutil.make_archive(
|
||||||
str(self._saved_agent_path).replace(".zip", ""),
|
str(self._saved_agent_path).replace(".zip", ""),
|
||||||
"zip",
|
"zip",
|
||||||
|
|||||||
Reference in New Issue
Block a user