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

Fix Nelder-Mead init_simplex_corner creation #177

Merged
merged 1 commit into from
Feb 25, 2024

Conversation

zakv
Copy link
Collaborator

@zakv zakv commented Feb 25, 2024

As pointed out in #175, the way self.init_simplex_corner is created for NelderMeadLearner is problematic because it is set equal to self.min_boundary. This means that when self.init_simplex_corner is later modified, self.min_boundary is modified as well. This PR resolves the issue using the approach suggested in #175, namely by assigning a copy of self.min_boundary to self.init_simplex_corner rather than assigning the original array itself.

As pointed out in michaelhush#175, the way `self.init_simplex_corner` is created for `NelderMeadLearner` is problematic because it is set equal to `self.min_boundary`. This means that when `self.init_simplex_corner` is later modified, `self.min_boundary` is modified as well. This PR resolves the issue using the approach suggested in michaelhush#175, namely by assigning a copy of `self.min_boundary` to `self.init_simplex_corner` rather than assigning the original array itself.
@zakv zakv merged commit 64452ee into michaelhush:master Feb 25, 2024
@zakv zakv mentioned this pull request Feb 25, 2024
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.

1 participant