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

Remove all-element-non-negative check from user-prior CMA-ES #234

Conversation

nabenabe0928
Copy link
Contributor

As this check is not necessary (and even malicious), I remove this check. I believe this check was simply forgotten to be removed.

Contributor Agreements

Please read the contributor agreements and if you agree, please click the checkbox below.

  • I agree to the contributor agreements.

Motivation

This PR is a bug fix.

Description of the changes

Since the covariance matrix of CMA-ES can contain negative values as well, e.g., think about the case where two variables have negative correlation, I removed the unnecessary check for this.

As this check is not necessary (and even malicious), I remove this
check. I believe this check was simply forgotten to be removed.
Copy link
Member

@HideakiImamura HideakiImamura left a comment

Choose a reason for hiding this comment

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

LGTM.

@HideakiImamura HideakiImamura merged commit 1c7bf41 into optuna:main Jan 8, 2025
4 checks passed
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