Skip to content

Refactor emmr#6304

Merged
nabenabe0928 merged 12 commits intooptuna:masterfrom
nabenabe0928:refactor-emmr
Oct 28, 2025
Merged

Refactor emmr#6304
nabenabe0928 merged 12 commits intooptuna:masterfrom
nabenabe0928:refactor-emmr

Conversation

@nabenabe0928
Copy link
Copy Markdown
Contributor

@nabenabe0928 nabenabe0928 commented Oct 17, 2025

Motivation

Since EMMR duplicates the identical functionality as the Gaussian process module, this PR eliminates the duplication.

This PR is a follow-up of:

Description of the changes

  • Move the joint Gaussian process posterior to the GP module

@nabenabe0928 nabenabe0928 added the code-fix Change that does not change the behavior, such as code refactoring. label Oct 17, 2025
@nabenabe0928 nabenabe0928 added this to the v4.6.0 milestone Oct 17, 2025
@nabenabe0928
Copy link
Copy Markdown
Contributor Author

@kAIto47802 @not522
Could you review this PR?

Copy link
Copy Markdown
Member

@not522 not522 left a comment

Choose a reason for hiding this comment

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

Thank you for your PR. I confirmed that its behavior almost matches that of master.
I add small comment. Could you check them?


# We need to clamp the variance to avoid negative values due to numerical errors.
return mean, torch.clamp(var, min=0.0)
return mean_tensor.item(), var_tensor.item()
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

How about rename mean_tensor and var_tensor to mean and var?

@kAIto47802
Copy link
Copy Markdown
Collaborator

Thank you for the PR. It almost looks good to me. I'll take another look once the above comments are resolved.

nabenabe0928 and others added 2 commits October 27, 2025 04:31
Co-authored-by: Naoto Mizuno <naotomizuno@preferred.jp>
@nabenabe0928
Copy link
Copy Markdown
Contributor Author

@not522 @kAIto47802
I addressed the comment, PTAL!

Co-authored-by: Naoto Mizuno <naotomizuno@preferred.jp>
Copy link
Copy Markdown
Collaborator

@kAIto47802 kAIto47802 left a comment

Choose a reason for hiding this comment

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

LGTM!

@nabenabe0928 nabenabe0928 merged commit 3073e43 into optuna:master Oct 28, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

code-fix Change that does not change the behavior, such as code refactoring.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants