Created
August 7, 2018 03:04
-
-
Save goddoe/8d5951332a34b7f1c71bd679d5afb319 to your computer and use it in GitHub Desktop.
timeit
This file contains hidden or 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
import timeit | |
n = 100 | |
t = timeit.timeit("policy_eval(random_policy, env)", globals=globals(), number = n) / n | |
print("avg time: {}".format(t)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment