-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add save_freq argument and refactor scripts (#305)
* add save_freq argument and refactor scripts * run formatter * fix test
- Loading branch information
Showing
19 changed files
with
211 additions
and
176 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
from all.environments import AtariEnvironment | ||
from all.presets import atari | ||
|
||
from .train import train | ||
|
||
|
||
def main(): | ||
train( | ||
atari, | ||
AtariEnvironment, | ||
description="Train an agent on an Atari environment.", | ||
env_help="The name of the environment (e.g., 'Pong').", | ||
default_frames=40e6, | ||
) | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
from all.environments import GymEnvironment | ||
from all.presets import classic_control | ||
|
||
from .train import train | ||
|
||
|
||
def main(): | ||
train( | ||
classic_control, | ||
GymEnvironment, | ||
description="Train an agent on an classic control environment.", | ||
env_help="The name of the environment (e.g., CartPole-v0).", | ||
default_frames=50000, | ||
) | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
from all.environments import GymEnvironment | ||
from all.presets import continuous | ||
|
||
from .train import train | ||
|
||
|
||
def main(): | ||
train( | ||
continuous, | ||
GymEnvironment, | ||
description="Train an agent on a continuous control environment.", | ||
env_help="The name of the environment (e.g., LunarLanderContinuous-v2).", | ||
default_frames=10e6, | ||
) | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
from all.environments import MujocoEnvironment | ||
from all.presets import continuous | ||
|
||
from .train import train | ||
|
||
|
||
def main(): | ||
train( | ||
continuous, | ||
MujocoEnvironment, | ||
description="Train an agent on an Mujoco environment.", | ||
env_help="The name of the environment (e.g., Ant-v4).", | ||
default_frames=10e6, | ||
) | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |
Oops, something went wrong.