Skip to content

Shuffle result in _fit_resample method #929

@liyakun

Description

@liyakun

Is your feature request related to a problem? Please describe

The current method _fit_resample in _random_over_sampler.py simply appends the new samples and returns the result. However, it might be helpful to shuffle the result before returning. For example, in deep learning model training, the data from resampling could result in samples in one batch with same label which could lead to poor performance in training the model.

Describe the solution you'd like

Shuffle the result in _fit_resample before returning it

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions