-
Notifications
You must be signed in to change notification settings - Fork 268
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
Allow setting n_jobs on tool invocation #2430
Conversation
LukasNickel
commented
Oct 26, 2023
- It can be useful to set n_jobs indepently from the config file
- For the sklearn reconstructors this requires setting n_jobs on every model, that is attached to the reconstructor
- Fixes Allow overriding number of cores used by reconstructors on the CLI #2307
Maybe it also makes sense to set |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #2430 +/- ##
==========================================
- Coverage 92.47% 92.46% -0.02%
==========================================
Files 234 234
Lines 19819 19868 +49
==========================================
+ Hits 18327 18370 +43
- Misses 1492 1498 +6 ☔ View full report in Codecov by Sentry. |
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.
Please update the config files so that they now pass n_jobs
to the Reconstructor classes and not in the model configs.
- It can be useful to set n_jobs indepently from the config file - For the sklearn reconstructors this requires setting n_jobs on every model, that is attached to the reconstructor - Fixes #2307
- Implement the @observe method there as well, because it is not a subclass of sklearnreconstructor
- Move n_jobs from model config to reconstructor config