Closed InterferencePattern closed 4 years ago
The functionality to return a DataFrame has been added in imbalanced-learn 0.6 if I recall correctly. We have unit test so I am sure it works in the latest release. You will need to install scikit-learn 0.23 and imbalanced-learn 0.7. I think that both version do not support python 3.5
@glemaitre Thanks for the response, and sorry for not seeing this sooner in the Release Notes.
Describe the bug
When a SMOTE object resampling a Pandas DataFrame, the returned object from the .fit_resample() method should also be a Pandas DataFrame. Instead it is returned as a numpy array.
Steps/Code to Reproduce
Expected Results
Output would be
X_resampled, y_resampled
in the form of Pandas DataFrame, Pandas SeriesActual Results
Output is
X_resampled, y_resampled
in the form of numpy array, numpy arrayVersions
Unfortunately I cannot give details about the playform, but the following are the important packages: Python 3.5.3 NumPy 1.15.2 SciPy 1.1.0 Scikit-Learn 0.20.0 Imbalanced-Learn 0.4.3