Skip to content

Commit

Permalink
Merge pull request #17 from BoostV/feature/request_more_experiments
Browse files Browse the repository at this point in the history
Request multiple experiments
  • Loading branch information
langdal authored Jun 28, 2021
2 parents b9e4861 + b98e5f0 commit 54f2874
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions optimizerapi/optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,11 @@ def processResult(result, optimizer, dimensions, cfg, extras, data, space):
# In the following section details that should be reported to
# clients should go into the "resultDetails" dictionary and plots
# go into the "plots" list (this is handled by calling the "addPlot" function)

resultDetails["next"] = optimizer.ask(n_points=1) # TODO Hent n_points fra brugeren
experimentSuggestionCount = 1
if ("experimentSuggestionCount" in extras):
experimentSuggestionCount = extras["experimentSuggestionCount"]
print("Exp:" + str(experimentSuggestionCount))
resultDetails["next"] = optimizer.ask(n_points=experimentSuggestionCount) # TODO Hent n_points fra brugeren

##################### Copied and modified from views.py::view_report #####################

Expand Down

0 comments on commit 54f2874

Please sign in to comment.