Skip to content

Commit

Permalink
Explicitly convert target to objective
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianSosic committed Dec 6, 2024
1 parent e7956b0 commit 814cb61
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions benchmarks/domains/synthetic_2C1D_1C.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,16 +64,17 @@ def synthetic_2C1D_1C(settings: ConvergenceExperimentSettings) -> DataFrame:

target = NumericalTarget(name="target", mode="MAX")
searchspace = SearchSpace.from_product(parameters=parameters)
objective = target.to_objective()

scenarios: dict[str, Campaign] = {
"Random Recommender": Campaign(
searchspace=searchspace,
recommender=RandomRecommender(),
objective=target,
objective=objective,
),
"Default Recommender": Campaign(
searchspace=searchspace,
objective=target,
objective=objective,
),
}

Expand Down

0 comments on commit 814cb61

Please sign in to comment.