-
Notifications
You must be signed in to change notification settings - Fork 47
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
SacessOptimizer: Fix passing parameters #1201
Conversation
Fixes a bug during the cooperation step where best parameters wouldn't be shared correctly.
Codecov ReportAttention:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## develop #1201 +/- ##
===========================================
- Coverage 82.73% 81.41% -1.33%
===========================================
Files 148 148
Lines 11775 11782 +7
===========================================
- Hits 9742 9592 -150
- Misses 2033 2190 +157 ☔ View full report in Codecov by Sentry. |
…er vector is stored in local solutions and sent to the manager.
local_solution_x = optimizer_result.x[ | ||
optimizer_result.free_indices | ||
] | ||
local_solution_fx = optimizer_result.fval | ||
|
||
self.local_solutions.append(local_solution_x) | ||
|
||
self._maybe_update_global_best( | ||
optimizer_result.x, optimizer_result.fval | ||
local_solution_x, local_solution_fx | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Conceptually, why was this changed? what was not working here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OptimzerResult.free_indices
was ignored, i.e. potentially nonsensical parameter were used.
SyncManager.Array
.