Created
February 28, 2022 14:17
-
-
Save thepycoder/5b66a046adb495a8027cbb6a41b0c15d to your computer and use it in GitHub Desktop.
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
# report every 1 minute, this is way too often, but we are testing here | |
optimizer.set_report_period(1) | |
# start the optimization process | |
# this function returns immediately | |
optimizer.start() | |
# set the time limit for the optimization process (2 hours) | |
optimizer.set_time_limit(in_minutes=120.0) | |
# wait until process is done (notice we are controlling the optimization process in the background) | |
optimizer.wait() | |
# optimization is completed, print the top performing experiments id | |
top_exp = optimizer.get_top_experiments(top_k=3) | |
print([t.id for t in top_exp]) | |
# make sure background optimization stopped | |
optimizer.stop() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment