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

Scatter search documentation / use local optimizer by default #1214

Merged
merged 3 commits into from
Nov 28, 2023

Conversation

dweindl
Copy link
Member

@dweindl dweindl commented Nov 27, 2023

  • Extended scatter search documentation
  • Changed get_default_ess_options to default to fides for local optimization instead of no local optimizer
  • Added a wrapper for fides to forward walltime and function evaluation limits

* Extended scatter search documentation
* Changed `get_default_ess_options` to default to fides for local optimization instead of no local optimizer
* Added a wrapper for fides to forward walltime and function evaluation limits
@dweindl dweindl requested review from PaulJonasJost and a team as code owners November 27, 2023 07:37
@codecov-commenter
Copy link

codecov-commenter commented Nov 27, 2023

Codecov Report

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

Comparison is base (ffe5c6e) 82.67% compared to head (4d92f99) 83.94%.

Files Patch % Lines
pypesto/optimize/ess/sacess.py 80.00% 6 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1214      +/-   ##
===========================================
+ Coverage    82.67%   83.94%   +1.26%     
===========================================
  Files          148      148              
  Lines        11799    11826      +27     
===========================================
+ Hits          9755     9927     +172     
+ Misses        2044     1899     -145     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dweindl dweindl marked this pull request as draft November 27, 2023 08:04
@dweindl dweindl self-assigned this Nov 27, 2023
@dweindl dweindl marked this pull request as ready for review November 27, 2023 09:16
Copy link
Collaborator

@PaulJonasJost PaulJonasJost left a comment

Choose a reason for hiding this comment

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

Looks fine to me, thanks for the enhanced documentation :)

return [
settings[0],
*(itertools.islice(itertools.cycle(settings[1:]), num_workers - 1)),
]


class SacessFidesFactory:
Copy link
Collaborator

Choose a reason for hiding this comment

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

As far as I can see, the factory is a new addition, providing ess with fitting fides optimisers? Is it a lot more effort to generalise this to more than just fides?

Copy link
Member Author

Choose a reason for hiding this comment

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

For optimizers that support walltime+function limits it would be pretty easy.

See also #1181 (comment), which would be my preferred solution for it. If we go for that, then this class would be removed.

Here, the preliminary goal would be just to have some default "that works".

@dweindl dweindl merged commit 3cb35ee into ICB-DCM:develop Nov 28, 2023
18 checks passed
@dweindl dweindl deleted the doc_ess branch November 28, 2023 12:15
This was referenced Dec 5, 2023
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