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

Simplify parallel backend config #549

Merged
merged 45 commits into from
Apr 5, 2024

Conversation

AnesBenmerzoug
Copy link
Collaborator

@AnesBenmerzoug AnesBenmerzoug commented Mar 27, 2024

Description

This PR closes #385

Changes

  • Deprecated config argument of parallel backend classes, ray future executor and MapReduceJob class.
  • Allowed instantiating parallel backend classes directly and deprecated init_parallel_backend function.
  • Updated docstrings.
  • Adapted all methods to use parallel_backend and deprecate config argument.

Checklist

  • Wrote Unit tests (if necessary)
  • Updated Documentation (if necessary)
  • Updated Changelog
  • If notebooks were added/changed, added boilerplate cells are tagged with "tags": ["hide"] or "tags": ["hide-input"]

@AnesBenmerzoug AnesBenmerzoug self-assigned this Mar 27, 2024
@AnesBenmerzoug AnesBenmerzoug marked this pull request as ready for review April 1, 2024 11:47
Copy link
Collaborator

@mdbenito mdbenito left a comment

Choose a reason for hiding this comment

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

As usual, good stuff. I left some low-value/interest comments, and one about documentation which I do think is important.

src/pydvl/parallel/backends/joblib.py Show resolved Hide resolved
src/pydvl/parallel/backend.py Outdated Show resolved Hide resolved
src/pydvl/parallel/backends/joblib.py Show resolved Hide resolved
src/pydvl/parallel/map_reduce.py Outdated Show resolved Hide resolved
docs/getting-started/advanced-usage.md Show resolved Hide resolved
@kosmitive
Copy link
Contributor

kosmitive commented Apr 2, 2024

Really cool! I would also vote for making the whole parallel module a separate library it is really useful as a standalone package.

@AnesBenmerzoug AnesBenmerzoug requested a review from mdbenito April 5, 2024 09:08
Copy link
Collaborator

@mdbenito mdbenito left a comment

Choose a reason for hiding this comment

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

Left some changes. I will apply them and merge

docs/getting-started/advanced-usage.md Outdated Show resolved Hide resolved
docs/getting-started/advanced-usage.md Outdated Show resolved Hide resolved
docs/getting-started/advanced-usage.md Outdated Show resolved Hide resolved
docs/getting-started/advanced-usage.md Outdated Show resolved Hide resolved
docs/getting-started/advanced-usage.md Outdated Show resolved Hide resolved
src/pydvl/parallel/__init__.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@mdbenito mdbenito left a comment

Choose a reason for hiding this comment

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

Good schtuff

@mdbenito mdbenito merged commit d40e8e2 into develop Apr 5, 2024
0 of 5 checks passed
@mdbenito mdbenito deleted the feature/simplify-parallel-backend-config branch April 5, 2024 09:29
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.

Simplify parallel backend configuration
3 participants