Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixing reference point etc. #362

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion trieste/acquisition/function.py
Original file line number Diff line number Diff line change
Expand Up @@ -1060,7 +1060,7 @@ def prepare_acquisition_function(
feasible_mean, _ = objective_model.predict(feasible_query_points)

_pf = Pareto(feasible_mean)
_reference_pt = get_reference_point(_pf.front)
_reference_pt = get_reference_point(feasible_mean)
Copy link
Collaborator

@TsingQAQ TsingQAQ Oct 1, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just for learning curious: as get_reference_point is currently only intend to extract the reference point from a 'front' (as conveyed from its input arg's name, though we never check if input is really a 'front'), is 1063 more like a tmp fix, or some ref doc could be mentioned here as well to align with this specific adaptive choice of ref pt in CMOO? And if there is only 1 feasible point, we'd assume this behaves the same?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a temporary fix. It's possibly a very bad choice in general. On my current problem it works well because the constraints are quite restrictive. We may want to discuss what we want to do with reference point management in general. It feels that we can't stick to a single solution.

ehvi = expected_hv_improvement(objective_model, _pf, _reference_pt)
return lambda at: ehvi(at) * constraint_fn(at)

Expand Down
1 change: 1 addition & 0 deletions trieste/bayesian_optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,7 @@ def optimize(
history: list[Record[S]] = []

for step in range(num_steps):
print(step)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

monitoring? :)

try:
if track_state:
models_copy = copy.deepcopy(models)
Expand Down