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

support for yzlsm and qlsm for bo #11

Merged
merged 3 commits into from
Feb 25, 2024
Merged

support for yzlsm and qlsm for bo #11

merged 3 commits into from
Feb 25, 2024

Conversation

aquaorifice
Copy link
Collaborator

Added code for handling YZLSM and QLSM

@aquaorifice aquaorifice requested a review from ephoris February 23, 2024 23:11
return bounds

def get_next_points(self, x: torch.Tensor, y: torch.Tensor, best_y: float, bounds: torch.Tensor,
acquisition_function: str = "ExpectedImprovement", n_points: int = 1) -> torch.Tensor:
single_model = MixedSingleTaskGP(x, y, cat_dims=[1, 2], input_transform=Normalize(d=x.shape[1], bounds=bounds),
outcome_transform=Standardize(m=1))
if self.model_type == "QHybrid" or self.model_type == "Classic":
Copy link
Collaborator

@ephoris ephoris Feb 23, 2024

Choose a reason for hiding this comment

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

At some point (and this does not need to be addressed in this PR), we should move away from str types and use the Enum provided in lsm/types.py:6

Copy link
Collaborator

@ephoris ephoris left a comment

Choose a reason for hiding this comment

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

LGTM! 👍

@ephoris
Copy link
Collaborator

ephoris commented Feb 24, 2024

Changes look good! Squash and merge at this point and create a new branch if you need more development/changes.

@aquaorifice aquaorifice merged commit e3c7c94 into main Feb 25, 2024
3 checks passed
@aquaorifice aquaorifice deleted the lsm_bo branch February 25, 2024 02:18
ephoris pushed a commit that referenced this pull request Apr 23, 2024
* added support for yzlsm and qlsm for bo

* qlsm solver update

* remove redundant call
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants