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

Parallel table transformer #859

Open
lars-reimann opened this issue Jun 24, 2024 · 1 comment
Open

Parallel table transformer #859

lars-reimann opened this issue Jun 24, 2024 · 1 comment
Assignees
Labels
enhancement 💡 New feature or request lab Suitable for the lab team1

Comments

@lars-reimann
Copy link
Member

Is your feature request related to a problem?

The sequential table transformer (#802) is great if later transformations depend on prior ones. Often, however, columns are transformed independently, which gives us opportunity to parallelize.

Desired solution

New class ParallelTableTransformer.

  • Superclass: InvertibleTableTransformer
  • Constructor parameters:
    • transformers: list[TableTransformer].
    • Raise if multiple transformers are applied to the same column.
  • fit:
    • Fit the individual transformers on the given table in parallel. Keep in mind that multithreading is usually not helpful for CPU-bound tasks in Python due to the Global Interpreter lock. Multiprocessing is likely more efficient. Profile your code!
  • transform:
    • Transform the table with the individual transformers in parallel (see fit). Gather the results of the transformers and merge them to a single table.
  • inverse_transform:
    • Raise an error if any transformer is not invertible
    • Inverse-transform the table with the individual transformers in parallel (see fit). Gather the results of the transformers and merge them to a single table.

Possible alternatives (optional)

No response

Screenshots (optional)

No response

Additional Context (optional)

No response

@lars-reimann lars-reimann added enhancement 💡 New feature or request lab Suitable for the lab labels Jun 24, 2024
@wastedareas wastedareas self-assigned this Jul 12, 2024
@wastedareas
Copy link
Contributor

Story points were decided by assignees

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement 💡 New feature or request lab Suitable for the lab team1
Projects
Status: In Progress
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants