Add HyperParameterOptimizer arguments: spawn_task_project, save_top_k_tasks_only

This commit is contained in:
allegroai
2021-01-10 13:07:57 +02:00
parent 49ba89587f
commit f679c80535
2 changed files with 233 additions and 82 deletions

View File

@@ -86,6 +86,10 @@ an_optimizer = HyperParameterOptimizer(
optimizer_class=aSearchStrategy,
# Select an execution queue to schedule the experiments for execution
execution_queue=execution_queue,
# If specified all Tasks created by the HPO process will be under the `spawned_tasks_project` project
spawn_task_project=None, # 'HPO spawn project',
# If specified only the top K performing Tasks will be kept, the others will be automatically archived
save_top_k_tasks_only=None, # 5,
# Optional: Limit the execution time of a single experiment, in minutes.
# (this is optional, and if using OptimizerBOHB, it is ignored)
time_limit_per_job=10.,