Skip to content

Commit

Permalink
readd sleep to hyperparameters example
Browse files Browse the repository at this point in the history
  • Loading branch information
DaStoll committed Jul 1, 2024
1 parent bd7c07a commit 3db8e0c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions neps_examples/basic_usage/hyperparameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

def run_pipeline(float1, float2, categorical, integer1, integer2):
loss = -float(np.sum([float1, float2, int(categorical), integer1, integer2]))
time.sleep(0.7) # For demonstration purposes
return loss


Expand All @@ -26,4 +27,5 @@ def run_pipeline(float1, float2, categorical, integer1, integer2):
root_directory="results/hyperparameters_example",
post_run_summary=True,
max_evaluations_total=15,
ignore_errors=True,
)

0 comments on commit 3db8e0c

Please sign in to comment.