Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions doc/whats_new/v0.0.4.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
.. _changes_0_4:

Version 0.4.2
=============

Changelog
---------

Bug fixes
.........

- Fix a bug in :class:`imblearn.over_sampling.SMOTENC` in which the the median
of the standard deviation instead of half of the median of the standard
deviation.
By :user:`Guillaume Lemaitre <glemaitre>` in :issue:`491`.

Version 0.4
===========

Expand Down
2 changes: 1 addition & 1 deletion imblearn/over_sampling/_smote.py
Original file line number Diff line number Diff line change
Expand Up @@ -974,7 +974,7 @@ def _fit_resample(self, X, y):
# distance is computed between 2 samples, the difference will be equal
# to the median of the standard deviation as in the original paper.
X_ohe.data = (np.ones_like(X_ohe.data, dtype=X_ohe.dtype) *
self.median_std_)
self.median_std_ / 2)
X_encoded = sparse.hstack((X_continuous, X_ohe), format='csr')

X_resampled, y_resampled = super(SMOTENC, self)._fit_resample(
Expand Down