Skip to content

fix smote converter#421

Merged
cristian-tamblay merged 3 commits into
developfrom
fix/smote-converter
Jan 21, 2026
Merged

fix smote converter#421
cristian-tamblay merged 3 commits into
developfrom
fix/smote-converter

Conversation

@Felipedino
Copy link
Copy Markdown
Collaborator

This pull request introduces improvements to the ImbalancedLearnWrapper class in the data conversion pipeline, focusing on better handling of data types and dataset splits when resampling with imbalanced-learn samplers.

Enhancements to data type management and dataset splits:

  • Data type metadata is now serialized and saved into the PyArrow table using the new save_types_in_arrow_metadata utility, ensuring that type information is preserved during resampling.
  • When transforming data, the output DashAIDataset now retains the original dataset splits from x, improving consistency for downstream tasks.

General improvements:

  • Added a SUPERVISED class attribute to ImbalancedLearnWrapper to clarify its intended use with supervised learning workflows.

Copilot AI review requested due to automatic review settings January 14, 2026 19:30
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request enhances the ImbalancedLearnWrapper class to better preserve data type metadata and dataset splits when applying resampling operations like SMOTE or ADASYN. The changes focus on serializing type information into PyArrow table metadata and maintaining dataset split information through the transformation pipeline.

Changes:

  • Data type metadata is now serialized and saved into the PyArrow table using the save_types_in_arrow_metadata utility
  • The transform method now preserves original dataset splits from the input
  • Added SUPERVISED = True class attribute to indicate supervised learning requirement

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread DashAI/back/converters/imbalanced_learn_wrapper.py Outdated
Felipedino and others added 2 commits January 19, 2026 09:11
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@cristian-tamblay cristian-tamblay merged commit 44e862d into develop Jan 21, 2026
18 checks passed
@cristian-tamblay cristian-tamblay deleted the fix/smote-converter branch January 21, 2026 13:15
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