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

SacessOptimizer: Fix passing parameters #1201

Merged
merged 5 commits into from
Nov 21, 2023

Conversation

dweindl
Copy link
Member

@dweindl dweindl commented Nov 20, 2023

  • Fixes a bug during the cooperation step where best parameters wouldn't be shared correctly due to incorrect assignment to SyncManager.Array.
  • Fixes a bug where free_indices are ignored, and thus, a wrong parameter vector is stored in local solutions and sent to the manager.

Fixes a bug during the cooperation step where best parameters wouldn't be shared correctly.
@codecov-commenter
Copy link

codecov-commenter commented Nov 20, 2023

Codecov Report

Attention: 7 lines in your changes are missing coverage. Please review.

Comparison is base (a280f4b) 82.73% compared to head (f070585) 81.41%.

Files Patch % Lines
pypesto/optimize/ess/sacess.py 0.00% 7 Missing ⚠️

❗ 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.
📢 Have feedback on the report? Share it here.

@dweindl dweindl self-assigned this Nov 21, 2023
Comment on lines +531 to 540
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
)
Copy link
Collaborator

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?

Copy link
Member Author

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.

@dweindl dweindl merged commit 13e80c8 into ICB-DCM:develop Nov 21, 2023
18 checks passed
@dweindl dweindl deleted the fix_sacess_fix_comm branch November 21, 2023 14:45
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.

3 participants