Created
December 23, 2019 10:40
-
-
Save NMZivkovic/dd8277b2df070713051b98a2e90d913b to your computer and use it in GitHub Desktop.
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
train_env = suite_gym.load('CartPole-v0') | |
evaluation_env = suite_gym.load('CartPole-v0') | |
print('Observation Spec:') | |
print(train_env.time_step_spec().observation) | |
print('Reward Spec:') | |
print(train_env.time_step_spec().reward) | |
print('Action Spec:') | |
print(train_env.action_spec()) | |
train_env = tf_py_environment.TFPyEnvironment(train_env) | |
evaluation_env = tf_py_environment.TFPyEnvironment(evaluation_env) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment